mirror of
https://github.com/rive-app/rive-flutter.git
synced 2025-06-27 10:18:12 +08:00
Merge pull request #14 from rive-app/exportLoopAndInstance
Export loop and instance
This commit is contained in:
@ -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/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';
|
||||||
export 'package:rive/src/rive_core/shapes/paint/stroke.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/solid_color.dart';
|
||||||
export 'package:rive/src/rive_core/shapes/paint/linear_gradient.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';
|
||||||
|
@ -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(
|
||||||
|
Reference in New Issue
Block a user