LoadMoreView class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- LoadMoreView
Constructors
-
LoadMoreView({Key? key, required LoadMoreCallback onLoadMore, required bool isEmpty, required bool isError, required List<
Widget> slivers, Widget? completeView, String? completeText, Widget? loadView, Widget? emptyView, Widget? errorView, double? height = 30, String? loadingText, String? errorText, String? emptyText, bool? disableLoadMoreIfNotFullPage = false, int? duration = 0, double? scrollOffset = 100}) -
const
Properties
- completeText → String?
-
完成加载文字
final
- completeView → Widget?
-
完成加载widget
final
- disableLoadMoreIfNotFullPage → bool?
-
不满一屏是否开启上拉加载
final
- duration → int?
-
上拉加载延迟 最小100毫秒
final
- emptyText → String?
-
加载没有数据时 空提示
final
- emptyView → Widget?
-
加载完成空数据组件
final
- errorText → String?
-
加载错误时 错误提示
final
- errorView → Widget?
-
加载完成错误组件
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double?
-
底部加载组件高度 默认30
final
- isEmpty → bool
-
加载是否没有数据
final
- isError → bool
-
加载是否出现错误
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- loadingText → String?
-
正在加载时 加载提示
final
- loadView → Widget?
-
正在加载 加载组件
final
- onLoadMore → LoadMoreCallback
-
上拉加载回调
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollOffset → double?
-
偏移量 滚动到距离底部还有scrollOffset触发上拉加载 默认100
final
-
slivers
→ List<
Widget> -
组件必须是sliver可以参考SliverList或者SliverGrid
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _LoadMoreViewState -
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}) → 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