Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update to latest flame #44

Merged
merged 2 commits into from
Jul 26, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions fire_atlas_editor/lib/services/storage/desktop.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class FireAtlasStorage extends FireAtlasStorageApi {
Future<LoadedProjectEntry> loadProject(String path) async {
final file = File(path);
final raw = await file.readAsBytes();
final atlas = FireAtlas.deserialize(raw);
final atlas = FireAtlas.deserializeBytes(raw);
return LoadedProjectEntry(path, atlas);
}

Expand Down Expand Up @@ -57,7 +57,7 @@ class FireAtlasStorage extends FireAtlasStorageApi {
const typeGroup = XTypeGroup(label: 'fire atlas', extensions: ['fa']);
final file = await _selectDialog(typeGroup);
final bytes = await file.readAsBytes();
final atlas = FireAtlas.deserialize(bytes);
final atlas = FireAtlas.deserializeBytes(bytes);
return LoadedProjectEntry(file.path, atlas);
}

Expand Down
2 changes: 1 addition & 1 deletion fire_atlas_editor/lib/widgets/simple_animation_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class _AnimationPlayerWidget extends State<AnimationPlayerWidget>
@override
void initState() {
super.initState();
_ticker = widget.animation.ticker();
_ticker = widget.animation.createTicker();

_controller = AnimationController(vsync: this)
..addListener(() {
Expand Down
40 changes: 12 additions & 28 deletions fire_atlas_editor/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ packages:
dependency: transitive
description:
name: archive
sha256: "0c8368c9b3f0abbc193b9d6133649a614204b528982bebc7026372d61677ce3a"
sha256: cb6a278ef2dbb298455e1a713bda08524a175630ec643a242c399c932a0a1f7d
url: "https://pub.dev"
source: hosted
version: "3.3.7"
version: "3.6.1"
async:
dependency: transitive
description:
Expand Down Expand Up @@ -49,14 +49,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.18.0"
convert:
dependency: transitive
description:
name: convert
sha256: "0f08b14755d163f6e2134cb58222dd25ea2a2ee8a195e53983d57c075324d592"
url: "https://pub.dev"
source: hosted
version: "3.1.1"
cross_file:
dependency: transitive
description:
Expand All @@ -69,10 +61,10 @@ packages:
dependency: transitive
description:
name: crypto
sha256: aa274aa7774f8964e4f4f38cc994db7b6158dd36e9187aaceaddc994b35c6c67
sha256: ff625774173754681d66daaf4a448684fb04b78f902da9cb3d308c19cc5e8bab
url: "https://pub.dev"
source: hosted
version: "3.0.2"
version: "3.0.3"
cupertino_icons:
dependency: "direct main"
description:
Expand Down Expand Up @@ -173,18 +165,18 @@ packages:
dependency: "direct main"
description:
name: flame
sha256: "6954277d14731fa497a7a878bb34cf01c090b20e3ffe5c6e093a7c1f823bfac5"
sha256: "79133dc46a3ff870950f41d0dc1598414e7bd7ae2c29bd9f0a9de208d9a70cb7"
url: "https://pub.dev"
source: hosted
version: "1.8.0"
version: "1.18.0"
flame_fire_atlas:
dependency: "direct main"
description:
name: flame_fire_atlas
sha256: "072cc15ee4be55e2363c71f66252b11b7ae4e8e2bf3c2f9e75fbef0de4c794bb"
sha256: f86a40c40abd5abbf609ce3c8af4a68ff8270cc1f7238d44541551ebd6366d74
url: "https://pub.dev"
source: hosted
version: "1.3.6"
version: "1.5.2"
flame_lint:
dependency: "direct main"
description:
Expand Down Expand Up @@ -284,10 +276,10 @@ packages:
dependency: transitive
description:
name: ordered_set
sha256: "3fedcc9121b3ba24c0a84f32da2989c42e36c159b73feadbc2f402dc55966b81"
sha256: "1bfaaaee0419e43ecc9eaebd410eb4bd5039657b72011de75ff3e2915c9aac60"
url: "https://pub.dev"
source: hosted
version: "5.0.1"
version: "5.0.3"
path:
dependency: transitive
description:
Expand Down Expand Up @@ -336,14 +328,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.1.3"
pointycastle:
dependency: transitive
description:
name: pointycastle
sha256: db7306cf0249f838d1a24af52b5a5887c5bf7f31d8bb4e827d071dc0939ad346
url: "https://pub.dev"
source: hosted
version: "3.6.2"
process:
dependency: transitive
description:
Expand Down Expand Up @@ -574,5 +558,5 @@ packages:
source: hosted
version: "0.2.0+3"
sdks:
dart: ">=3.3.0 <4.0.0"
flutter: ">=3.18.0-18.0.pre.54"
dart: ">=3.4.0 <4.0.0"
flutter: ">=3.22.0"
4 changes: 2 additions & 2 deletions fire_atlas_editor/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ dependencies:
file_selector_linux: ^0.9.1
file_selector_macos: ^0.9.0+4
file_selector_windows: ^0.9.1+4
flame: ^1.8.0
flame_fire_atlas: ^1.3.6
flame: ^1.18.0
flame_fire_atlas: ^1.5.2
flame_lint: ^1.0.0
flutter:
sdk: flutter
Expand Down
Loading