TDRefreshHeader class

TDesign刷新头部 结合EasyRefresh类实现下拉刷新,继承自Header类,字段含义与父类一致

Constructors

TDRefreshHeader({Key? key, double extent = 48.0, double triggerDistance = 48.0, bool float = false, Duration? completeDuration, bool enableHapticFeedback = true, bool enableInfiniteRefresh = false, bool overScroll = true, TDLoadingIcon loadingIcon = TDLoadingIcon.circle, Color? backgroundColor})

Properties

backgroundColor Color?
背景颜色
final
completeDuration Duration?
完成延时
finalinherited
enableHapticFeedback bool
开启震动反馈
finalinherited
enableInfiniteRefresh bool
是否开启无限刷新
finalinherited
extent double
Header容器高度
finalinherited
float bool
是否浮动
finalinherited
hashCode int
The hash code for this object.
no setterinherited
key Key?
Key
final
loadingIcon TDLoadingIcon
loading样式
final
overScroll bool
越界滚动(enableInfiniteRefresh为true生效)
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
triggerDistance double
触发刷新高度
finalinherited

Methods

builder(BuildContext context, EasyRefresh easyRefresh, ValueNotifier<bool> focusNotifier, ValueNotifier<TaskState> taskNotifier, ValueNotifier<bool> callRefreshNotifier) Widget
inherited
contentBuilder(BuildContext context, RefreshMode refreshState, double pulledExtent, double refreshTriggerPullDistance, double refreshIndicatorExtent, AxisDirection axisDirection, bool float, Duration? completeDuration, bool enableInfiniteRefresh, bool success, bool noMore) Widget
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited