ExtendedScrollView class

配合 sliver 家族组件 无需设置高度 自适应高度

Inheritance
Available Extensions

Constructors

ExtendedScrollView({Key? key, bool expanded = false, int flex = 1, required BuilderScrollView? builderScrollView, required List<Widget> slivers})
const
ExtendedScrollView.custom({Key? key, bool expanded = false, int flex = 1, Clip clipBehavior = Clip.hardEdge, bool reverse = false, ScrollPhysics? physics, Axis scrollDirection = Axis.vertical, DragStartBehavior dragStartBehavior = DragStartBehavior.start, ScrollController? controller, String? restorationId, List<Widget> slivers = const <Widget>[], bool? primary, bool shrinkWrap = false, Key? center, double anchor = 0.0, double? cacheExtent, int? semanticChildCount, ScrollBehavior? scrollBehavior, ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual})
const
ExtendedScrollView.nested({Key? key, bool expanded = false, int flex = 1, NestedScrollViewHeaderSliversBuilder? headerSliverBuilder, bool floatHeaderSlivers = true, Clip clipBehavior = Clip.hardEdge, bool reverse = false, ScrollPhysics? physics, Axis scrollDirection = Axis.vertical, DragStartBehavior dragStartBehavior = DragStartBehavior.start, Widget? body, ScrollController? controller, String? restorationId, List<Widget> slivers = const <Widget>[], ScrollBehavior? scrollBehavior})
const

Properties

anchor double
final
body Widget?
final
builderScrollView BuilderScrollView?
自定义 ScrollView 使用自定义 ScrollView,以下 ScrollViewNestedScrollViewCustomScrollView 均完全无效 请将对应的 ScrollView 设置在自定义的组件中
final
cacheExtent double?
final
center Key?
final
clipBehavior Clip
final
controller ScrollController?
**** ScrollView **** ///
final
dragStartBehavior DragStartBehavior
final
expanded bool
ScrollView 外嵌套 Expanded
final
flex int
final
floatHeaderSlivers bool
**** NestedScrollView **** ///
final
hashCode int
The hash code for this object.
no setterinherited
headerSliverBuilder NestedScrollViewHeaderSliversBuilder?
final
isNestedScrollView bool
是否使用 NestedScrollView
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
keyboardDismissBehavior ScrollViewKeyboardDismissBehavior
final
physics ScrollPhysics?
final
primary bool?
**** CustomScrollView **** ///
final
restorationId String?
final
reverse bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollBehavior ScrollBehavior?
final
scrollDirection Axis
final
semanticChildCount int?
final
shrinkWrap bool
final
slivers List<Widget>
内部组件
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<ExtendedScrollView>
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