Refresh Indicator

The Refresh Indicator widget provides the classic "pull-to-refresh" functionality. When a user drags a scrollable list downward, a loading indicator appears, and an action can be triggered to refresh the content. This is a common and intuitive way for users to update data in your app.

Properties

Property
Description

strokeWidth

The thickness of the circular progress indicator's line.

color

The color of the progress indicator.

backgroundColor

The background color of the progress indicator.

displacement

The distance from the edge of the screen to the center of the progress indicator.

edgeOffset

The distance from the edge of the screen where the refresh indicator can be triggered.

triggerMode

How the refresh indicator is triggered. onEdge triggers it when the user pulls from the edge of the screen.

onRefresh

The action to be executed when the user triggers a refresh.


Default Properties

The Refresh Indicator widget does not have the standard default properties. Its behavior is primarily controlled by the properties listed above.

Last updated