Skip to content

Commit

Permalink
fix: Flame_rive now can load Nested Artboards and update to 0.9.0 riv…
Browse files Browse the repository at this point in the history
…e package (#1741)

Is a solution to Closes #1692 and updatting to rive 0.9.0 flutter package
  • Loading branch information
nmarafo committed Jun 19, 2022
1 parent 1dc313f commit 82e4be9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/flame_rive/example/pubspec.yaml
Expand Up @@ -11,7 +11,7 @@ dependencies:
flame_rive: ^1.3.0
flutter:
sdk: flutter
rive: 0.8.4
rive: 0.9.0

dev_dependencies:
flame_lint: ^0.0.1
Expand Down
4 changes: 2 additions & 2 deletions packages/flame_rive/lib/src/rive_component.dart
Expand Up @@ -162,6 +162,6 @@ Future<Artboard> loadArtboard(
}) async {
final loaded = await file;
return artboardName == null
? loaded.mainArtboard
: loaded.artboardByName(artboardName) ?? loaded.mainArtboard;
? loaded.mainArtboard.instance()
: loaded.artboardByName(artboardName)!.instance();
}
2 changes: 1 addition & 1 deletion packages/flame_rive/pubspec.yaml
Expand Up @@ -11,7 +11,7 @@ dependencies:
flame: ^1.2.0
flutter:
sdk: flutter
rive: ^0.8.4
rive: ^0.9.0

dev_dependencies:
dartdoc: ^4.1.0
Expand Down

0 comments on commit 82e4be9

Please sign in to comment.