DesignScrollArea class

child, a scroll view on controller, with a scrollbar from thumbBuilder (and trackBuilder) on its end edge (or bottom).

DesignScrollArea(controller: controller, thumbBuilder: (context, thumb) => const ColoredBox(color: Color(0x66000000)), child: SingleChildScrollView(controller: controller, child: const Text('Terms')))
Inheritance

Constructors

DesignScrollArea({Key? key, required ScrollController controller, required DesignScrollbarBuilder thumbBuilder, required Widget child, DesignScrollbarBuilder? trackBuilder, Axis axis = Axis.vertical, double thickness = 12, double minThumbLength = 24, double? thumbLength, DesignScrollbarVisibility visibility = DesignScrollbarVisibility.auto, Duration timeToFade = const Duration(milliseconds: 1200), bool focusable = true, FocusNode? focusNode, bool autofocus = false, double step = 48, String? semanticLabel, Widget frameBuilder(BuildContext context, bool focused, Widget area)?})
A scroll area around child, which scrolls on controller.
const

Properties

autofocus → bool
Whether the area takes focus when it first appears (with focusable).
final
axis → Axis
The scroll view's axis.
final
child → Widget
The scroll view.
final
controller → ScrollController
The controller child scrolls on: give child the same one. The caller makes it, keeps it across rebuilds and disposes it.
final
focusable → bool
Whether the area is a tab stop that scrolls by keyboard (on for a region with nothing focusable in it).
final
focusNode → FocusNode?
The area's focus.
final
frameBuilder → Widget Function(BuildContext context, bool focused, Widget area)?
Paints around the area, focused while the keyboard is on it (its focus ring); null: nothing.
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
minThumbLength → double
The thumb's least length.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
semanticLabel → String?
What a screen reader calls the area.
final
step → double
How far an arrow key scrolls.
final
thickness → double
The scrollbar's breadth (its pointer target too).
final
thumbBuilder → DesignScrollbarBuilder
Paints the thumb.
final
thumbLength → double?
The thumb's length, whatever the content's (no longer than the track); null: in proportion to the view's share of the content, at least minThumbLength.
final
timeToFade → Duration
How long it stays after scrolling stops (DesignScrollbarVisibility.auto).
final
trackBuilder → DesignScrollbarBuilder?
Paints the track; null: none.
final
visibility → DesignScrollbarVisibility
When the scrollbar shows.
final

Methods

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