From 8e737009097242d701cbba624a27c4abc5a6d9d2 Mon Sep 17 00:00:00 2001 From: Matt Sullivan Date: Mon, 7 Dec 2020 12:42:45 -0800 Subject: [PATCH] Fixes missing asset in example --- example/lib/main.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example/lib/main.dart b/example/lib/main.dart index baec233..5705960 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -41,7 +41,7 @@ class _MyHomePageState extends State { // 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 { 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); } },