How do you refresh FutureBuilder on button click in Flutter?

first you assign your _getData() future function to a variable (_myData) with the same return type, after that, you can override it’s value in setState() that will rebuild the UI and therefor run the future again. Show activity on this post. You can refresh widget by clicking on FlatButton .6 Kas 2018

Sizin İçin Seçtik  Is Java full stack good career?

Leave a Reply

Your email address will not be published. Required fields are marked *