-
-
Notifications
You must be signed in to change notification settings - Fork 405
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Navigate and other functions are way slower then they should be #1982
Comments
Update: After I've tested most of the navigation functions I faced the same issue for the following: All of the following are SLOW:
The other ones which are below are FASTER as they should be:
|
@vaind try setting the reverse animation duration to zero |
Hey, Any update on this bug? @Milad-Akarie |
Hi @Vildnex From your screencast, it seems like you are using a debug build. In Flutter, everything is way slower in debug mode. Have you tried testing in release or profile mode? |
@Vildnex try setting the reverse animation duration to zero |
@Milad-Akarie, I've tested it with the animation duration 0 and also on release mode. In both of those cases, the behavior of the slow animation remains for some reason. |
@Milad-Akarie any update on this issue? 🤞 |
Hey @Milad-Akarie, I found the solution to this problem:
I have to add this override in my AppRoute class and use it for all the routes AutoRoute. This is the only way I found so far to fix this issue. But I didn't find it anywhere to be documented. |
I made a small project in order to demonstrate this bug which can be found here https://github.com/Vildnex/test_bug/tree/master
I have to 2 RoutePage which are PageA and PageB and an another RoutePage whihc is InitialPage:
Page A:
Page B:
Initial Page:
I used CustomRoute with
noTransition
and a1
milliseconds durationApp Router:
If I will press the button to go to Page A or Page B, it is going to be instant. From page B where I used
push
going to the initial page is going to be instant. But on Page A where I usednavigate
(same problem if I usemaybePopTop
) then all the transitions will be WAY SLOWER.Is this a bug? Or why the
navigate
andmaybePopTop
are WAY SLOWER than thepush
function, or am I missing something in the configuration part?Screencast.from.2024-06-20.13-16-47.webm
The text was updated successfully, but these errors were encountered: