I am using the Stacked architecture in a Flutter app.
I have two views - ScoresPage and NewScorePage, each with their own ViewModel. Scores are stored in the database locally but also sent to an API.
ScoresPage displays all scores and NewScorePage collects information and asks its ViewModel to create a new score.
I go from the ScoresPage via a Navigator.push call to NewScorePage and use Navigator.pop to come back to ScoresPage.
I would like to refresh the ScoresPage when a new score is added once the NewScorePage is poped. What is the best way of doing this?
you can check out this page https://pub.dev/packages/stacked to rebuild your UI with the new updated ViewModel state was mentioned there