I am using Flutter for developing a website. Everything is working fine with Flutter except when it comes to reloading the page. When I press the refresh button in the browser, then the data is not getting reloaded , only the shimmer that i have added to be shown before the data loads keep showing infinitely.
How to manage refresh when the browser’s refresh button is clicked? Can we manage it via code?
We tried to do “html.window.location.reload();” , this is going into an infinite loop of reload.
Muskan Chaudhary is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1
try Wrapping your data fetching logic within a Future Builder
Devarsh Ukani is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.