RefreshConfiguration class

Inheritance

Constructors

RefreshConfiguration({Widget headerIndicatorBuilder(RefreshStatus status, RefreshConfiguration configuration, double offset), double headerExpand = 0, double headerMinHeight = 44, double headerRuningHeight = 88, double noMoreDataHeight = 88, double headerFailHeight = 0, double headerSuccessHeight = 0, Duration headerSuccessDuration = Duration.zero, Widget footerIndicatorBuilder(RefreshStatus status, RefreshConfiguration configuration, double offset), double footerExpand = 0, double footerMinHeight = 44, double footerRuningHeight = 88, double footerFailHeight = 0, double footerSuccessHeight = 0, Duration footerSuccessDuration = Duration.zero, Widget child})
RefreshConfiguration.defualt()
factory

Properties

child Widget
The widget below this widget in the tree.
finalinherited
footerExpand double
footer距离顶部距离
final
footerFailHeight double
上拉失败高度
final
footerIndicatorBuilder Widget Function(RefreshStatus status, RefreshConfiguration configuration, double offset)
下拉加载默认的builder
final
footerMinHeight double
上拉最小高度
final
footerRuningHeight double
上拉运行高度
final
footerSuccessDuration Duration
下拉成功停留时长
final
footerSuccessHeight double
上拉成功之后停留高度
final
hashCode int
The hash code for this object.
@nonVirtualread-onlyinherited
headerExpand double
header距离顶部距离
final
headerFailHeight double
下拉失败的高度,如果需要失败后仍然保持一个下拉距离可以设置
final
headerIndicatorBuilder Widget Function(RefreshStatus status, RefreshConfiguration configuration, double offset)
下拉刷新控件默认的builder
final
headerMinHeight double
header容器的最小高度,最小高度是为了下拉的时候,能够看得出来控件是从上面拉下来的,而不是从小变大,如果要从小变大的效果可以将此高度设置为0
final
headerRuningHeight double
下拉运行的高度,当拉到这个高度时松开即可刷新
final
headerSuccessDuration Duration
下拉成功之后停留时长,如果需要下拉之后展示一个成功的动画可以设置
final
headerSuccessHeight double
下拉成功停留高度,如果需要上拉成功之后浏览一段时间,这个是停留那一段时间的高度
final
key Key
Controls how one widget replaces another widget in the tree.
finalinherited
noMoreDataHeight double
无数据高度
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

createElement() InheritedElement
Inflates this configuration to a concrete instance.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
@protectedinherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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}) 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
updateShouldNotify(covariant InheritedWidget oldWidget) bool
Whether the framework should notify widgets that inherit from this widget.
override

Operators

operator ==(Object other) bool
The equality operator.
@nonVirtualinherited