ExtendedNestedScrollView class
An extended NestedScrollView, mainly for NestedScrollView with a TabBarView or PageView, which may use multiple ScrollController-s.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- ExtendedNestedScrollView
Constructors
-
ExtendedNestedScrollView({Key? key, ScrollController? controller, Axis scrollDirection = Axis.vertical, bool reverse = false, ScrollPhysics? physics, required NestedScrollViewHeaderSliversBuilder headerSliverBuilder, required int innerControllerCount, required int activeControllerIndex, required Widget bodyBuilder(BuildContext context, List<
ScrollController> innerControllers), DragStartBehavior dragStartBehavior = DragStartBehavior.start, bool floatHeaderSlivers = false, Clip clipBehavior = Clip.hardEdge, String? restorationId, ScrollBehavior? scrollBehavior, bool onNotification(Notification notification)?}) -
const
Properties
- activeControllerIndex → int
-
The active inner scroll controller index. Note that only the active controller's
ScrollPosition will attach to ExtendedNestedScrollView outer nested scroll
controller. Note that this value should be larger than innerControllerCount.
final
-
bodyBuilder
→ Widget Function(BuildContext context, List<
ScrollController> innerControllers) -
The body widget builder. This builder passes all inner scroll controllers as its
second parameter, and it should be used for each page's scroll view. Note that
possibly you need to wrap some pages with PrimaryScrollController.
final
- clipBehavior → Clip
-
final
- controller → ScrollController?
-
final
- dragStartBehavior → DragStartBehavior
-
final
- floatHeaderSlivers → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- headerSliverBuilder → NestedScrollViewHeaderSliversBuilder
-
final
- innerControllerCount → int
-
The inner scroll controller count (or page count). Note that this value should
be larger than zero.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onNotification → (bool Function(Notification notification)?)
-
The function called when a notification of the appropriate type arrives at this
location in the tree, and it is the same as NotificationListener.onNotification.
final
- physics → ScrollPhysics?
-
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
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → ExtendedNestedScrollViewState -
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