ExpressiveScrollArea class

child, a scroll view on controller, with Material's scrollbar on its end edge (or its bottom, axis horizontal): a pill thumb of onSurface (10% light, 30% dark; 50% and 65% under a pointer; 60% and 75% while dragged), 8dp wide, 12dp over a faint track while a pointer is on the bar, fading out after the scroll stops. Under the keyboard the area takes focus (its own tab stop) and wears the focus ring inside its edge; the arrows scroll by a step, Page Up and Down by a page, Home and End to the ends (ui_core's DesignScrollArea).

ExpressiveScrollArea(controller: scroll, child: ListView(controller: scroll, children: rows))
Inheritance

Constructors

ExpressiveScrollArea({required ScrollController controller, required Widget child, Axis axis = Axis.vertical, bool alwaysShown = false, bool focusable = true, String? semanticLabel, FocusNode? focusNode, bool autofocus = false, Key? key})
A scroll area around child, which scrolls on controller.
const

Properties

alwaysShown → bool
Whether the thumb stays while there is anything to scroll.
final
autofocus → bool
Whether the area takes focus when first built (with focusable).
final
axis → Axis
The way it scrolls.
final
child → Widget
The scroll view.
final
controller → ScrollController
The controller child scrolls on.
final
focusable → bool
Whether the area is a tab stop of its own.
final
focusNode → FocusNode?
The area's focus node (with focusable); null lets it keep its own.
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
semanticLabel → String?
What a screen reader calls the area.
final

Methods

build(BuildContext context) → Widget
Describes the part of the user interface represented by this widget.
override
createElement() → StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
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.
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