AntdPullToRefresh class
@t 下拉刷新 @g 反馈 @o 78 @d 在列表中通过手指下拉刷新加载新内容的交互操作。 @u 适用于对当前页面进行内容更新。
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- AntdStateComponent<
AntdBoxStyle, AntdPullToRefresh> - AntdPullToRefresh
Constructors
-
AntdPullToRefresh.new({Key? key, AntdBoxStyle? style, AntdStyleBuilder<
AntdBoxStyle, AntdPullToRefresh> ? styleBuilder, Widget? initialPrompt = const Text("用力下拉触发刷新"), Duration? initialDelay, required Widget child, Widget? releasePrompt = const Text("释放立即刷新"), Duration completionDelay = const Duration(milliseconds: 1000), Widget? completionPrompt = const Text("刷新成功"), FutureVoidCallback? onRefresh, Widget? pullingPrompt = const Text("用力下拉触发刷新"), Widget? refreshingPrompt = const Text("加载中..."), Duration duration = const Duration(milliseconds: 200), AntdPullToRefreshOnChange? onChange}) -
const
Properties
- child → Widget
-
主要内容区域
final
- completionDelay → Duration
-
刷新完成后提示内容的展示持续时间
final
- completionPrompt → Widget?
-
刷新完成时显示的提示内容
final
- duration → Duration
-
动画周期
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialDelay → Duration?
-
初始提示内容的展示持续时间
final
- initialPrompt → Widget?
-
初始状态下显示的提示内容
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onChange → AntdPullToRefreshOnChange?
-
事件
final
- onRefresh → FutureVoidCallback?
-
刷新触发时的异步回调函数
final
- pullingPrompt → Widget?
-
下拉过程中显示的提示内容
final
- refreshingPrompt → Widget?
-
正在刷新时显示的提示内容
final
- releasePrompt → Widget?
-
可释放刷新时显示的提示内容
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style → AntdBoxStyle?
-
样式
finalinherited
-
styleBuilder
→ AntdStyleBuilder<
AntdBoxStyle, AntdPullToRefresh> ? -
动态样式
finalinherited
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< StatefulWidget> -
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
-
getDefaultStyle(
BuildContext context, AntdTheme theme, AntdMapToken token) → AntdBoxStyle -
override
-
getFinalStyle(
BuildContext context, AntdBoxStyle style, AntdMapToken token) → AntdBoxStyle -
inherited
-
getInputStyle(
BuildContext context) → AntdBoxStyle? -
inherited
-
getStyle(
BuildContext context) → AntdBoxStyle -
inherited
-
getStyleBuilder(
BuildContext context) → AntdStyleBuilder< AntdBoxStyle, AntdPullToRefresh> ? -
inherited
-
getThemeStyle(
BuildContext context, AntdTheme theme) → AntdStyleBuilder< AntdBoxStyle, AntdPullToRefresh> ? -
override
-
getWidget(
BuildContext context) → AntdPullToRefresh -
override
-
margeStyle(
AntdBoxStyle defaultStyle, AntdBoxStyle? style) → AntdBoxStyle -
override
-
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