I have a page which is calling multiple classes and different widgets and by clicking on it user can hop to any page.
Currently the issue is I want to refresh the original page everytime it is shown to user.
When it is freshly loaded (causing no issue for now).
When user comes back to it from some other page using back key. old data is shown on the page, which I am trying to get rid of.
I have tried using Navigator.push
method (Observer class
method) and tried to listen when user presses backkey.
but there are multiple pages serving unique requests and I don't want to link everyone with that first page.
as while clicking Navigator.pop(context)
method i'll have to pass some string.
Does any one know how can I refresh the page when users comes back to it using backkey.