rive-app / rive-flutter

Flutter runtime for Rive
https://rive.app
MIT License
1.16k stars 180 forks source link

Joystick animation not working #331

Closed edhom closed 11 months ago

edhom commented 11 months ago

Description

It seems like joystick animations don't work as expected for us in Flutter runtime. In the animation below, the water should move up as the key moves in... Are we missing anything?

Steps To Reproduce

Demo App ``` void main() { runApp(const MyApp()); } class MyApp extends StatelessWidget { const MyApp({super.key}); @override Widget build(BuildContext context) { return MaterialApp( title: 'Joystick Demo', home: Scaffold( body: Container( color: Colors.black87, child: const Center( child: RiveAnimation.asset( 'joysticks.riv', fit: BoxFit.contain, stateMachines: ['State Machine'], ), ), ), ), ); } } ```

Source .riv/.rev file

https://editor.rive.app/file/key-joystick/459047

joystick_demo.zip

Actual behavior

https://github.com/rive-app/rive-flutter/assets/47747733/674a7b0c-ee07-4d9d-a786-dd9fb9b2b598

Expected behavior

Water moves up

Device & Versions (please complete the following information)

HayesGordon commented 11 months ago

Thanks for opening the issue. We're looking into it

HayesGordon commented 11 months ago

Fixed in v0.11.5