mirror of
https://github.com/rive-app/rive-flutter.git
synced 2025-05-20 06:46:28 +08:00
More documentation fixes re #132
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
## [0.7.20] - 2021-06-19 19:01:10
|
||||
- Quick start fixes in README.md.
|
||||
## [0.7.19] - 2021-06-18 12:00:00
|
||||
- BREAKING CHANGE: onInit callback now takes an artboard as a parameter
|
||||
- Adds simple state machine example
|
||||
|
@ -8,7 +8,7 @@ Runtime docs are available in [Rive's help center](https://help.rive.app/runtime
|
||||
|
||||
```yaml
|
||||
dependencies:
|
||||
rive: ^0.7.19
|
||||
rive: ^0.7.20
|
||||
```
|
||||
|
||||
## Quick Start
|
||||
@ -110,6 +110,10 @@ Play a one-shot animation repeatedly on demand
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:rive/rive.dart';
|
||||
|
||||
void main() {
|
||||
runApp(MaterialApp(home: PlayOneShotAnimation()));
|
||||
}
|
||||
|
||||
class PlayOneShotAnimation extends StatefulWidget {
|
||||
const PlayOneShotAnimation({Key? key}) : super(key: key);
|
||||
|
||||
@ -127,7 +131,7 @@ class _PlayOneShotAnimationState extends State<PlayOneShotAnimation> {
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
_controller = OnShotAnimation(
|
||||
_controller = OneShotAnimation(
|
||||
'bounce',
|
||||
autoplay: false,
|
||||
onStop: () => setState(() => _isPlaying = false),
|
||||
|
Reference in New Issue
Block a user