Flutter — Pull to Refresh

Vijay R
vijaycreations
Published in
2 min readNov 28, 2020

--

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 ListViewwhere 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

--

--

Vijay R
vijaycreations

Hai👋 I’m a flutter developer experienced in designing and developing stunning mobile apps. Reach out for freelance projects: calico.takeoff_01@icloud.com