You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TickerMode( // new
enabled:false, // new
child:constCenter(
child:RiveAnimation.network(
'https://cdn.rive.app/animations/vehicles.riv',
fit:BoxFit.cover,
),
),
), // new
Launch the app, navigate to that example
observe that the animation is still running
Expected behavior
The animation shouldn't be running when TickerMode is off
If the animations were to be driven off a AnimationController you'd get this feature for free as AnimationControllers stop ticking when TickerMode is off.
Hey @HayesGordon,
it seems like the issue is not fixed.
The ticker is stopped when ticket mode is disabled on the creation of the render object.
However, afterward, the render object is attached without looking at the tickerModeEnabled.
Description
TickerMode [1] is used in flutter to turn off animations for a subtree. However, it appears that rive is not respecting the setting.
[1] https://master-api.flutter.dev/flutter/widgets/TickerMode-class.html
Steps To Reproduce
Steps to reproduce the behavior:
TickerMode(enabled: false, child: ...)
:Expected behavior
The animation shouldn't be running when TickerMode is off
/cc @dnfield
The text was updated successfully, but these errors were encountered: