mirror of
https://github.com/rive-app/rive-flutter.git
synced 2025-06-27 18:28:18 +08:00
Preparing for pub
This commit is contained in:
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
dependencies:
|
dependencies:
|
||||||
rive: ^0.6.2
|
rive: ^0.6.3
|
||||||
```
|
```
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -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';
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user