Flutter — How to make your ScrollView support pull-to-refresh?

RefreshIndicator comes to help!

It’s an useful behavior on the mobile app that when we scroll to the top of a vertical scroll view, and overscroll, a refresh indicator will drop down, then the new data updates after we release the control. Flutter provides a handy widget called RefreshIndicator for this purpose.