How do you refresh widgets on flutter?

How do you refresh widgets on flutter?
Answer
dart file.
  1. navigateSecondPage : This will navigate us to the SecondPage . It also call the onGoBack method, which will refresh the data and update the state.
  2. onGoBack : This will be called when we come back to the current page (home) . We are doing two things here. …
  3. refreshData : This will refresh the data of the page.
 

Tìm kiếm

Back
Top