ScrollList class
- Inheritance
-
- Available Extensions
Constructors
-
ScrollList({Key? key, 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, double? cacheExtent, ScrollPhysics? physics, EdgeInsetsGeometry? padding, RefreshConfig? refreshConfig, ScrollController? controller, required List<Widget> sliver, })
-
滑动类型设置 physics
AlwaysScrollableScrollPhysics() 总是可以滑动
NeverScrollableScrollPhysics() 禁止滚动
BouncingScrollPhysics() 内容超过一屏 有回弹效果
ClampingScrollPhysics() 包裹内容 不会有回弹
const
-
ScrollList.builder({Key? key, 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, double? cacheExtent, ScrollPhysics? physics, EdgeInsetsGeometry? padding, RefreshConfig? refreshConfig, ScrollController? controller, ChildIndexGetter? findChildIndexCallback, SemanticIndexCallback? semanticIndexCallback, bool addAutomaticKeepALives = true, bool addRepaintBoundaries = true, bool addSemanticIndexes = true, required IndexedWidgetBuilder itemBuilder, required int itemCount, double? itemExtent, int crossAxisCount = 1, double mainAxisSpacing = 0, double crossAxisSpacing = 0, double childAspectRatio = 1, bool crossAxisFlex = false, double maxCrossAxisExtent = 10, double? mainAxisExtent, Widget placeholder = const PlaceholderChild(), })
-
-
ScrollList.count({Key? key, 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, double? cacheExtent, ScrollPhysics? physics, EdgeInsetsGeometry? padding, RefreshConfig? refreshConfig, ScrollController? controller, double? itemExtent, required List<Widget> children, bool addAutomaticKeepALives = true, bool addRepaintBoundaries = true, bool addSemanticIndexes = true, int crossAxisCount = 1, double mainAxisSpacing = 0, double crossAxisSpacing = 0, double childAspectRatio = 1, bool crossAxisFlex = false, double maxCrossAxisExtent = 10, double? mainAxisExtent, Widget placeholder = const PlaceholderChild(), SemanticIndexCallback? semanticIndexCallback, })
-
-
ScrollList.separated({Key? key, 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, double? cacheExtent, ScrollPhysics? physics, EdgeInsetsGeometry? padding, RefreshConfig? refreshConfig, ScrollController? controller, double? itemExtent, required IndexedWidgetBuilder itemBuilder, required int itemCount, required IndexedWidgetBuilder separatorBuilder, bool addAutomaticKeepALives = true, bool addRepaintBoundaries = true, bool addSemanticIndexes = true, Widget placeholder = const PlaceholderChild(), ChildIndexGetter? findChildIndexCallback, SemanticIndexCallback? semanticIndexCallback, })
-
-
ScrollList.waterfall({Key? key, 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, double? cacheExtent, ScrollPhysics? physics, EdgeInsetsGeometry? padding, RefreshConfig? refreshConfig, ScrollController? controller, required IndexedWidgetBuilder itemBuilder, required int itemCount, ChildIndexGetter? findChildIndexCallback, SemanticIndexCallback? semanticIndexCallback, bool addAutomaticKeepALives = true, bool addRepaintBoundaries = true, bool addSemanticIndexes = true, int? crossAxisCount, double? maxCrossAxisExtent, double mainAxisSpacing = 0, double crossAxisSpacing = 0, Widget placeholder = const PlaceholderChild(), })
-