Merge pull request #14 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

View File

@ -7,10 +7,11 @@ export 'package:rive/src/controllers/simple_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_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/shapes/shape.dart';
export 'package:rive/src/rive_core/shapes/paint/fill.dart';
export 'package:rive/src/rive_core/shapes/paint/stroke.dart';
export 'package:rive/src/rive_core/shapes/paint/solid_color.dart';
export 'package:rive/src/rive_core/shapes/paint/linear_gradient.dart';
export 'package:rive/src/rive_core/shapes/paint/radial_gradient.dart';
export 'package:rive/src/rive_core/shapes/paint/radial_gradient.dart';

View File

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