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