BaseList class

Inheritance
Available Extensions

Constructors

BaseList({Key? key, required IndexedWidgetBuilder itemBuilder, int? itemCount, EasyRefreshController? refreshController, Widget? placeholder, Widget? header, Widget? footer, VoidCallback? onRefresh, VoidCallback? onLoading, bool reverse = false, bool shrinkWrap = false, bool noScrollBehavior = false, bool? primary, Axis scrollDirection = Axis.vertical, Clip clipBehavior = Clip.hardEdge, DragStartBehavior dragStartBehavior = DragStartBehavior.start, String? restorationId, ScrollPhysics? physics, EdgeInsetsGeometry? padding, ScrollController? controller, ChildIndexGetter? findChildIndexCallback, SemanticIndexCallback semanticIndexCallback = kDefaultSemanticIndexCallback, bool addAutomaticKeepALives = true, bool addRepaintBoundaries = true, bool addSemanticIndexes = true, GridStyle gridStyle = GridStyle.none, IndexedWidgetBuilder? separatorBuilder, double? itemExtent, Widget? prototypeItem, int crossAxisCount = 1, double? maxCrossAxisExtent, double mainAxisSpacing = 0, double crossAxisSpacing = 0, double childAspectRatio = 1, double? mainAxisExtent, double? cacheExtent, RefreshConfig? refreshConfig})
BaseList.count({Key? key, required List<Widget> children, EasyRefreshController? refreshController, Widget? placeholder, Widget? header, Widget? footer, VoidCallback? onRefresh, VoidCallback? onLoading, bool reverse = false, bool shrinkWrap = false, bool noScrollBehavior = false, bool? primary, Axis scrollDirection = Axis.vertical, Clip clipBehavior = Clip.hardEdge, DragStartBehavior dragStartBehavior = DragStartBehavior.start, String? restorationId, ScrollPhysics? physics, EdgeInsetsGeometry? padding, ScrollController? controller, SemanticIndexCallback semanticIndexCallback = kDefaultSemanticIndexCallback, bool addAutomaticKeepALives = true, bool addRepaintBoundaries = true, bool addSemanticIndexes = true, GridStyle gridStyle = GridStyle.none, double? cacheExtent, double? itemExtent, Widget? prototypeItem, int crossAxisCount = 1, double? maxCrossAxisExtent, double mainAxisSpacing = 0, double crossAxisSpacing = 0, double childAspectRatio = 1, double? mainAxisExtent, RefreshConfig? refreshConfig})
BaseList.custom({Key? key, required List<Widget> sliver, EasyRefreshController? refreshController, Widget? header, Widget? footer, VoidCallback? onRefresh, VoidCallback? onLoading, ScrollPhysics? physics, ScrollController? controller, EdgeInsetsGeometry? padding, bool shrinkWrap = false, Axis scrollDirection = Axis.vertical, bool reverse = false, bool? primary, Clip clipBehavior = Clip.hardEdge, DragStartBehavior dragStartBehavior = DragStartBehavior.start, bool noScrollBehavior = false, String? restorationId, double? cacheExtent, RefreshConfig? refreshConfig})
BaseList.waterfall({Key? key, required IndexedWidgetBuilder itemBuilder, required int? itemCount, EasyRefreshController? refreshController, Widget? placeholder, Widget? header, Widget? footer, VoidCallback? onRefresh, VoidCallback? onLoading, bool reverse = false, bool shrinkWrap = false, bool noScrollBehavior = false, bool? primary, Axis scrollDirection = Axis.vertical, Clip clipBehavior = Clip.hardEdge, DragStartBehavior dragStartBehavior = DragStartBehavior.start, String? restorationId, ScrollPhysics? physics, EdgeInsetsGeometry? padding, ScrollController? controller, ChildIndexGetter? findChildIndexCallback, SemanticIndexCallback semanticIndexCallback = kDefaultSemanticIndexCallback, bool addAutomaticKeepALives = true, bool addRepaintBoundaries = true, bool addSemanticIndexes = true, GridStyle gridStyle = GridStyle.masonry, IndexedWidgetBuilder? separatorBuilder, double? itemExtent, Widget? prototypeItem, int crossAxisCount = 1, double? maxCrossAxisExtent, double mainAxisSpacing = 0, double crossAxisSpacing = 0, double childAspectRatio = 1, double? mainAxisExtent, double? cacheExtent, RefreshConfig? refreshConfig})

Properties

anchor double
finalinherited
cacheExtent double?
finalinherited
center Key?
finalinherited
clipBehavior Clip
finalinherited
controller ScrollController?
finalinherited
dragStartBehavior DragStartBehavior
finalinherited
添加底部 Sliver 组件
finalinherited
hashCode int
The hash code for this object.
no setterinherited
添加头部 Sliver 组件
finalinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
keyboardDismissBehavior ScrollViewKeyboardDismissBehavior
CustomScrollView
finalinherited
noScrollBehavior bool
Extra parameters
finalinherited
padding EdgeInsetsGeometry?
finalinherited
physics ScrollPhysics?
finalinherited
primary bool?
finalinherited
refreshConfig RefreshConfig?
finalinherited
restorationId String?
finalinherited
reverse bool
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollBehavior ScrollBehavior?
finalinherited
scrollDirection Axis
finalinherited
semanticChildCount int?
finalinherited
shrinkWrap bool
finalinherited
sliver List<Widget>
添加多个 Widget
finalinherited
slivers List<Widget>
finalinherited

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
inherited
buildCustomScrollView(ScrollPhysics? physics) CustomScrollView
inherited
buildSlivers() List<Widget>
inherited
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
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