ClassicalHeader class

经典Header

Inheritance

Constructors

ClassicalHeader({double extent = 60.0, double triggerDistance = 70.0, bool float = false, Duration? completeDuration = const Duration(seconds: 1), bool enableInfiniteRefresh = false, bool enableHapticFeedback = true, bool overScroll = true, Key? key, AlignmentGeometry? alignment, String? refreshText, String? refreshReadyText, String? refreshingText, String? refreshedText, String? refreshFailedText, String? noMoreText, bool showInfo = true, String? infoText, Color bgColor = Colors.transparent, Color textColor = Colors.black, Color infoColor = Colors.teal})

Properties

alignment → AlignmentGeometry?
方位
final
bgColor → 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
infoColor → Color
更多信息文字颜色
final
infoText → String?
更多信息
final
key → Key?
Key
final
noMoreText → String?
没有更多文字
final
overScroll → bool
越界滚动(enableInfiniteRefresh为true生效)
finalinherited
refreshedText → String?
刷新完成文字
final
refreshFailedText → String?
刷新失败文字
final
refreshingText → String?
正在刷新文字
final
refreshReadyText → String?
准备刷新文字
final
refreshText → String?
提示刷新文字
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
showInfo → bool
显示额外信息(默认为时间)
final
textColor → Color
字体颜色
final
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
override
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