Stacked-Org/stacked

[bug]: Flutter web when we reload page on web browser , it will lost back button

Opened this issue · 3 comments

Describe the bug

In Flutter web, When we reload page on browser, it will lost back button, and if we use back button, then we add nav navigationService.pop(); it also will not back to previous screen

To reproduce

1.click navigate from home screen
2.It will open detail second screen
3.click Reload refresh on browser, it will lost button back, if we add button back with leading, it will not work back to previous event we use pop function back.

Expected behavior

No response

Screenshots

No response

Additional Context

No response

Hi @Kimsoer , I think this is the default behavior on Flutter, not a Stacked issue. Did you tried the same without Stacked (only Flutter code) ?

When you click on refresh button on the browser, the app is rebuild from scratch so you need to do some extra work to put the app in the previous state.

Yes, this would be a new feature to implement in Stacked. It's not implemented by default.

Noted with thanks @ferrarafer