Preparing for pub

This commit is contained in:
Luigi Rosso
2020-11-17 16:04:42 -08:00
parent 8e1718c7bd
commit 39eddb4fd6
4 changed files with 5 additions and 5 deletions

View File

@ -10,7 +10,7 @@
```yaml ```yaml
dependencies: dependencies:
rive: ^0.6.2 rive: ^0.6.3
``` ```
## Examples ## Examples

View File

@ -41,7 +41,7 @@ class _MyHomePageState extends State<MyHomePage> {
// Load the animation file from the bundle, note that you could also // Load the animation file from the bundle, note that you could also
// download this. The RiveFile just expects a list of bytes. // download this. The RiveFile just expects a list of bytes.
rootBundle.load('assets/off_road_car.riv').then( rootBundle.load('assets/animation_playground.riv').then(
(data) async { (data) async {
final file = RiveFile(); final file = RiveFile();
@ -52,7 +52,7 @@ class _MyHomePageState extends State<MyHomePage> {
final artboard = file.mainArtboard; final artboard = file.mainArtboard;
// Add a controller to play back a known animation on the main/default // Add a controller to play back a known animation on the main/default
// artboard.We store a reference to it so we can toggle playback. // artboard.We store a reference to it so we can toggle playback.
artboard.addController(_controller = SimpleAnimation('idle')); artboard.addController(_controller = SimpleAnimation('Untitled 1'));
setState(() => _riveArtboard = artboard); setState(() => _riveArtboard = artboard);
} }
}, },

View File

@ -10,7 +10,7 @@ class RuntimeVersion {
const RuntimeVersion(this.major, this.minor); const RuntimeVersion(this.major, this.minor);
} }
const riveVersion = RuntimeVersion(6, 2); const riveVersion = RuntimeVersion(6, 3);
class RuntimeHeader { class RuntimeHeader {
static const String fingerprint = 'RIVE'; static const String fingerprint = 'RIVE';

View File

@ -1,6 +1,6 @@
name: rive name: rive
description: Rive 2 Flutter Runtime. This package provides runtime functionality for playing back and interacting with animations built with the Rive editor available at https://rive.app. description: Rive 2 Flutter Runtime. This package provides runtime functionality for playing back and interacting with animations built with the Rive editor available at https://rive.app.
version: 0.6.2+3 version: 0.6.3
repository: https://github.com/rive-app/rive-flutter repository: https://github.com/rive-app/rive-flutter
homepage: https://rive.app homepage: https://rive.app