stacked icon indicating copy to clipboard operation
stacked copied to clipboard

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

Open Kimsoer opened this issue 1 year ago • 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

Kimsoer avatar Sep 27 '23 02:09 Kimsoer

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.

ferrarafer avatar Sep 27 '23 03:09 ferrarafer

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

FilledStacks avatar Oct 19 '23 08:10 FilledStacks

Noted with thanks @ferrarafer

Kimsoer avatar Oct 23 '23 02:10 Kimsoer