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

MomentumRouter.resetWithContext and Momentum.restart not working #51

Open
auric-co opened this issue Feb 6, 2022 · 0 comments
Open

Comments

@auric-co
Copy link

auric-co commented Feb 6, 2022

I updated my flutter sdk to sdk: ">=2.15.1 <3.0.0", and updated the whole app to be null-safe, but that resulted in the MomentumRouter.resetWithContext and Momentum.restart not working. The issue after countless tries seems to be the .resetWithContext function, because upon calling those functions to reset initial page say upon login, or wanting to do Navigate and Replace, the app clearly restarts, but goes back to app initial or whatever was your welcome or first page thereby not persisting login.

I have resorted to use MomentumRouter.goto for the time being just so the app can login since MomentumRouter.resetWithContext and Momentum.restart won't allow navigation to new page from Login Page, but the issue of persisting login is still an issue. Before the sdk update they were working as expected. As the video shows the last try that gets in the app uses MomentumRouter.goto, the other first tries was using MomentumRouter.resetWithContext and Momentum.restart.

Screenshot (308)

Android.Emulator.-.Pixel_4_XL_API_30_5554.2022-02-06.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant