Adds one-shot animation controller

This commit is contained in:
matt Sullivan
2021-06-14 14:41:10 -07:00
parent 4fdbb2a056
commit dddb78b62f
6 changed files with 121 additions and 3 deletions

View File

@ -1,4 +1,5 @@
import 'package:flutter/material.dart';
import 'package:rive_example/play_one_shot_animation.dart';
import 'package:rive_example/play_pause_animation.dart';
import 'package:rive_example/example_state_machine.dart';
import 'package:rive_example/liquid_download.dart';
@ -50,6 +51,20 @@ class Home extends StatelessWidget {
const SizedBox(
height: 10,
),
ElevatedButton(
child: const Text('Play One-Shot Animation'),
onPressed: () {
Navigator.push(
context,
MaterialPageRoute<void>(
builder: (context) => const PlayOneShotAnimation(),
),
);
},
),
const SizedBox(
height: 10,
),
ElevatedButton(
child: const Text('Button State Machine'),
onPressed: () {