Fixes missing asset in example

This commit is contained in:
Matt Sullivan
2020-12-07 12:42:45 -08:00
parent 39eddb4fd6
commit 8e73700909

View File

@ -41,7 +41,7 @@ class _MyHomePageState extends State<MyHomePage> {
// Load the animation file from the bundle, note that you could also
// download this. The RiveFile just expects a list of bytes.
rootBundle.load('assets/animation_playground.riv').then(
rootBundle.load('assets/off_road_car.riv').then(
(data) async {
final file = RiveFile();
@ -52,7 +52,7 @@ class _MyHomePageState extends State<MyHomePage> {
final artboard = file.mainArtboard;
// 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.addController(_controller = SimpleAnimation('Untitled 1'));
artboard.addController(_controller = SimpleAnimation('idle'));
setState(() => _riveArtboard = artboard);
}
},