ScrollPlan class
Which scrollables a CompositeScroller drives, in order — Android
ScrollerPolicy.pickScrollContainers, adapted to a target-less scan:
- Topmost layer only. A bottom sheet's list must win over the (larger) page still in the tree BEHIND it — scrolling the background under a modal moves content the user cannot even see.
- Vertical first, largest first — the page itself.
- Horizontal only for strips no taller than
kMaxCarouselHeightFraction of the viewport. A taller horizontal
scrollable is a PAGER (
PageView,TabBarView): page-snapping it is navigation, not scrolling, and silently changes screen context.
Constructors
-
ScrollPlan({required List<
UiNode> vertical, required List<UiNode> horizontal}) -
const
Properties
- dominant → UiNode?
-
The scrollable an alignment request should move (largest vertical, else
the first strip).
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
horizontal
→ List<
UiNode> -
Horizontal strips (carousels), in reading order.
final
- isEmpty → bool
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
vertical
→ List<
UiNode> -
Vertical scrollables, largest first.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited