AntdList<T> class

@t 列表 @g 信息展示 @o 80 @d 高性能通用列表解决方案,支持以下特性: 1. 精确索引跳转 - 支持根据索引值快速定位到指定位置 2. 虚拟滚动技术 - 优化大数据集性能,实现流畅滚动体验 3. 智能位置监听 - 实时监控列表项位置变化 4. 索引变更回调 - 提供索引变化事件监听机制 @u 以列表的形式干净高效的承载文字、列表、图片、段落等。

Inheritance

Constructors

AntdList.new({Key? key, AntdListStyle? style, AntdStyleBuilder<AntdListStyle, AntdList<T>>? styleBuilder, double? edgeThreshold, AntdOnScrollEdge? onEdgeReached, AntdListController<T>? controller, double cacheExtent = 1.5, CacheExtentStyle cacheExtentStyle = CacheExtentStyle.viewport, ScrollPhysics? physics = const BouncingScrollPhysics(), DragStartBehavior dragStartBehavior = DragStartBehavior.start, ScrollBehavior? scrollBehavior = const CupertinoScrollBehavior(), bool vertical = true, bool reversed = false, bool? shrinkWrap = false, bool virtual = false, AntdScrollItemFit fit = AntdScrollItemFit.child, required List<T> items, AntdScrollItemBuilder<T, AntdListController<T>>? itemBuilder, AntdEdge? alignment, AntdItemPositionListener<T>? onItemPosition, Duration? throttle, List<Widget>? headers, List<Widget>? footers, Widget? header, Widget? footer, bool? card})
const

Properties

alignment AntdEdge?
根据方向自动优化视图边界
finalinherited
cacheExtent double
预渲染区域大小
finalinherited
cacheExtentStyle CacheExtentStyle
预渲染区域计算方式
finalinherited
card bool?
卡片式列表
final
controller AntdListController<T>?
控制器
finalinherited
dragStartBehavior DragStartBehavior
拖动开始行为
finalinherited
edgeThreshold double?
触边阈值 (0-1表示百分比)
finalinherited
fit AntdScrollItemFit
自动适配策略
finalinherited
标题内容
final
footers List<Widget>?
尾部的sliver
finalinherited
gridDelegate SliverGridDelegate?
宫格排列
finalinherited
hashCode int
The hash code for this object.
no setterinherited
标题内容
final
headers List<Widget>?
头部的sliver
finalinherited
itemBuilder AntdScrollItemBuilder<T, AntdListController<T>>?
数据构造器
finalinherited
items List<T>
滚动的数据
finalinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onEdgeReached AntdOnScrollEdge?
当触碰到边界时的回调
finalinherited
onItemPosition AntdItemPositionListener<T>?
item变更事件
finalinherited
physics ScrollPhysics?
滚动物理效果
finalinherited
reversed bool
是否反向滚动
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollBehavior ScrollBehavior?
滚动行为
finalinherited
shrinkWrap bool?
自动扩展高度
finalinherited
slivers List<Widget>?
子组件
finalinherited
style AntdListStyle?
样式
finalinherited
styleBuilder AntdStyleBuilder<AntdListStyle, AntdList<T>>?
动态样式
finalinherited
throttle Duration?
滚动事件节流时长
finalinherited
vertical bool
滚动方向
finalinherited
viewportOffset double?
偏移位置
finalinherited
virtual bool
启动虚拟滚动
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) AntdListStyle
override
getFinalStyle(BuildContext context, AntdListStyle style, AntdMapToken token) AntdListStyle
inherited
getInputStyle(BuildContext context) AntdListStyle?
inherited
getStyle(BuildContext context) AntdListStyle
inherited
getStyleBuilder(BuildContext context) AntdStyleBuilder<AntdListStyle, AntdList<T>>?
inherited
getThemeStyle(BuildContext context, AntdTheme theme) AntdStyleBuilder<AntdListStyle, AntdList<T>>?
override
getWidget(BuildContext context) AntdList<T>
override
margeStyle(AntdListStyle defaultStyle, AntdListStyle? style) AntdListStyle
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