mirror of
https://github.com/rive-app/rive-flutter.git
synced 2025-06-28 02:37:16 +08:00
Fixes typo
This commit is contained in:
@ -20,7 +20,7 @@ class _PlayOneShotAnimationState extends State<PlayOneShotAnimation> {
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
_controller = OnShotAnimation(
|
||||
_controller = OneShotAnimation(
|
||||
'bounce',
|
||||
autoplay: false,
|
||||
onStop: () => setState(() => _isPlaying = false),
|
||||
|
@ -4,14 +4,14 @@ import 'package:flutter/widgets.dart';
|
||||
import 'package:rive/src/controllers/simple_controller.dart';
|
||||
|
||||
/// Controller tailered for managing one-shot animations
|
||||
class OnShotAnimation extends SimpleAnimation {
|
||||
class OneShotAnimation extends SimpleAnimation {
|
||||
/// Fires when the animation stops being active
|
||||
final VoidCallback? onStop;
|
||||
|
||||
/// Fires when the animation starts being active
|
||||
final VoidCallback? onStart;
|
||||
|
||||
OnShotAnimation(
|
||||
OneShotAnimation(
|
||||
String animationName, {
|
||||
double mix = 1,
|
||||
bool autoplay = true,
|
||||
|
Reference in New Issue
Block a user