style: updated example and readme

Diffs=
a259b57b2 style: clean up example app
483978f10 docs: update readme
This commit is contained in:
HayesGordon
2023-01-11 21:04:30 +00:00
parent 82e5dc984c
commit 0767844a56
19 changed files with 305 additions and 287 deletions

View File

@ -14,8 +14,8 @@ class SpeedyAnimation extends StatelessWidget {
title: const Text('Custom Controller'),
),
body: Center(
child: RiveAnimation.network(
'https://cdn.rive.app/animations/vehicles.riv',
child: RiveAnimation.asset(
'assets/vehicles.riv',
fit: BoxFit.cover,
animations: const ['idle'],
controllers: [SpeedController('curves', speedMultiplier: 3)],