Flutter — Pull to Refresh
In this article we shall discuss how to implement pull to refresh feature in Flutter app.
Video Tutorial
Overview
We shall be developing an app that will render a list of integer values in a ListView
where the end limit is set to any random number. For each refresh (pull down) the end limit for the list changes so we will be getting random count of integer list displaying in ui.
Implementation
- Declaring required variables.
We shall now declare few variables that we will be using in the later part of implementation.
1) a GlobalKey refreshKey
2) a variable for storing random values
- Build Widget