Skip to content
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

Option to customise or remove animation on Navigator push or pop. #20

Open
SethuSenthil opened this issue Jan 9, 2022 · 2 comments
Open
Labels
enhancement New feature or request
Milestone

Comments

@SethuSenthil
Copy link

Is your feature request related to a problem? Please describe.
I request biometrics to unlock my app through flutter_app_lock. Since this is sensitive information, I also make sure to hide the contents of the app when the app is backgrounded (with the same UI displaying the app's logo which I implemented for flutter_app_lock). When the user launches the app, the contents of the screen are already hidden, then the app lock pushes to a new page that looks identical to the previous page, however it has a sliding animation. When the user successfully authenticates themself, it pops back to the previous page which is identical.

TLDR; when the app has a splash screen to hide the app content when app is backgrounded when using the same splash screen with app lock (say for quick biometric), it causes the app to go back and forth to which appears to be "the same page" to the end-user.

This causes unnecessary complications in the UI the end-user does not need to see.

Describe the solution you'd like
An option to disable the Navigator sliding animations.

Describe alternatives you've considered
I have seen https://stackoverflow.com/questions/49874272/how-to-navigate-to-other-page-without-animation-flutter
however, since this package uses pushReplacementNamed and not pushReplacement, I'm not sure how to implement the "Duration = 0 " solution.

Additional context

@tomalabaster tomalabaster added the enhancement New feature or request label Oct 28, 2022
@tomalabaster
Copy link
Owner

Hi! Thanks for raising. I'm looking to remove the use of a Navigator or MaterialApp completely in issue #8 and with that offer the ability to use your own transitions, this should be suitable to your needs!

@tomalabaster
Copy link
Owner

Acknowledging that this is still an issue that v4.0.0 doesn't resolve, but looking to resolve 👍

@tomalabaster tomalabaster added this to the 5.0.0 milestone Dec 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants