1
0
mirror of https://github.com/rive-app/rive-flutter.git synced 2025-07-12 13:18:00 +08:00

Merge pull request from rive-app/exportLoopAndInstance

Export loop and instance
This commit is contained in:
Maxwell Talbot
2020-10-01 09:14:33 +01:00
committed by GitHub
2 changed files with 4 additions and 1 deletions

@ -7,6 +7,7 @@ export 'package:rive/src/controllers/simple_controller.dart';
export 'package:rive/src/rive_core/rive_animation_controller.dart'; export 'package:rive/src/rive_core/rive_animation_controller.dart';
export 'package:rive/src/rive_core/animation/linear_animation.dart'; export 'package:rive/src/rive_core/animation/linear_animation.dart';
export 'package:rive/src/rive_core/animation/linear_animation_instance.dart'; export 'package:rive/src/rive_core/animation/linear_animation_instance.dart';
export 'package:rive/src/rive_core/animation/loop.dart';
export 'package:rive/src/rive_core/artboard.dart'; export 'package:rive/src/rive_core/artboard.dart';
export 'package:rive/src/rive_core/shapes/shape.dart'; export 'package:rive/src/rive_core/shapes/shape.dart';
export 'package:rive/src/rive_core/shapes/paint/fill.dart'; export 'package:rive/src/rive_core/shapes/paint/fill.dart';

@ -11,6 +11,8 @@ class SimpleAnimation extends RiveAnimationController<RuntimeArtboard> {
final String animationName; final String animationName;
SimpleAnimation(this.animationName); SimpleAnimation(this.animationName);
LinearAnimationInstance get instance => _instance;
@override @override
bool init(RuntimeArtboard artboard) { bool init(RuntimeArtboard artboard) {
var animation = artboard.animations.firstWhere( var animation = artboard.animations.firstWhere(