Adds custom controller for speed example

This commit is contained in:
matt Sullivan
2021-06-14 16:18:39 -07:00
parent bf863bfa8d
commit e22b403ee2
2 changed files with 72 additions and 0 deletions

View File

@ -1,4 +1,5 @@
import 'package:flutter/material.dart';
import 'package:rive_example/custom_controller.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';
@ -118,6 +119,20 @@ class Home extends StatelessWidget {
);
},
),
const SizedBox(
height: 10,
),
ElevatedButton(
child: const Text('Custom Controller - Speed'),
onPressed: () {
Navigator.push(
context,
MaterialPageRoute<void>(
builder: (context) => const SpeedyAnimation(),
),
);
},
),
],
),
),