From 128b6b9770c2199e328abe8e3a707e73e9ef9318 Mon Sep 17 00:00:00 2001 From: Maxwell Talbot Date: Wed, 30 Sep 2020 19:06:44 +0100 Subject: [PATCH 1/2] export loop as part of the package --- lib/rive.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/rive.dart b/lib/rive.dart index 3a7f369..fbbae64 100644 --- a/lib/rive.dart +++ b/lib/rive.dart @@ -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'; \ No newline at end of file +export 'package:rive/src/rive_core/shapes/paint/radial_gradient.dart'; From 63f7a4c5611f3d25812ec8fe041b0800726f90b8 Mon Sep 17 00:00:00 2001 From: Maxwell Talbot Date: Wed, 30 Sep 2020 19:07:03 +0100 Subject: [PATCH 2/2] provide access to the animationinstance --- lib/src/controllers/simple_controller.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/src/controllers/simple_controller.dart b/lib/src/controllers/simple_controller.dart index 790d793..ebac99d 100644 --- a/lib/src/controllers/simple_controller.dart +++ b/lib/src/controllers/simple_controller.dart @@ -11,6 +11,8 @@ class SimpleAnimation extends RiveAnimationController { final String animationName; SimpleAnimation(this.animationName); + LinearAnimationInstance get instance => _instance; + @override bool init(RuntimeArtboard artboard) { var animation = artboard.animations.firstWhere(