PullMeDown class
A creative and easy-to-use pull-to-refresh widget.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- PullMeDown
Constructors
- PullMeDown({Key? key, required Widget child, required RefreshCallback onRefresh, Color? refreshColor, Color? backgroundColor, double refreshTriggerPullDistance = 100.0, double refreshIndicatorExtent = 80.0, Color? refreshIconColor, Widget? loadingIndicator})
-
const
Properties
- backgroundColor → Color?
-
Optional background color for the container behind the indicator.
final
- child → Widget
-
The widget that will be wrapped and made scrollable/refreshable.
Usually a ListView, GridView, or SingleChildScrollView.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- loadingIndicator → Widget?
-
Optional custom widget to show when refreshing.
Defaults to the custom
LiquidSpinner.final - onRefresh → RefreshCallback
-
The async callback function that is triggered when the refresh is activated.
This should return a Future that completes when the data is reloaded.
final
- refreshColor → Color?
-
The main background color of the liquid indicator.
Defaults to Theme.of(context).primaryColor if not provided.
final
- refreshIconColor → Color?
-
Custom color for the icon/spinner.
If null, it adapts automatically to contrast with refreshColor.
final
- refreshIndicatorExtent → double
-
The height (in pixels) that the indicator rests at while refreshing.
Defaults to 80.0.
final
- refreshTriggerPullDistance → double
-
The distance (in pixels) the user must pull down to trigger the refresh.
Defaults to 100.0.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< PullMeDown> -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited