A ticker created by useSingleTickerProvider
is not muted properly
#431
Labels
bug
Something isn't working
useSingleTickerProvider
is not muted properly
#431
Describe the bug
Suppose you have Screen A using
useSingleTickerProvider
.Screen A is rebuilt when you push from Screen A to Screen B and when you pop from Screen B to Screen A.
To Reproduce
With the code below,
Code example
Expected behavior
It is expected that a push to Screen B and a pop from Screen B will not rebuild Screen A.
My thoughts
When I didn't prepare the
AnimationController
myself and managed it insideAnimate
Widget as shown below, it worked as expected.use ticker created by SingleTickerProviderStateMixin
In other words, there seemed to be a difference in the implementation of
useSingleTickerProvider
andSingleTickerProviderStateMixin
.As a test, I changed
useSingleTickerProvider
based on the implementation ofSingleTickerProviderStateMixin
as shown below, and it worked as expected.changed useSingleTickerProvider
reference
Thank you.
The text was updated successfully, but these errors were encountered: