Muhammad Umair
Muhammad Umair

Reputation: 593

Flutter Web: Browser Refresh Button restarts app from splash

I am developing the flutter web app, if user refresh the browser page from browser button or from url, app starts from start. app shows splash and shows the login page. I want to handle the scenario like if user click on refresh the button it should refresh the state of current widget.

enter image description here

Upvotes: 0

Views: 1262

Answers (1)

Anas Altarazi
Anas Altarazi

Reputation: 117

a work around suggest : you can store the current route with its state and the variables so when splash screen run check if there is a current rout to go in.

Upvotes: 1

Related Questions