ScrollableArea class

ScrollableArea is a widget that can be used to show a scrollable area also shows arrows to indicate the direction of the scroll you can also use it to show a refresh indicator and control the scroll by th indicators

Inheritance

Constructors

ScrollableArea({Key? key, required Widget child, bool scrollable = true, bool refreshable = true, bool paginable = true, ScrollableAreaArrows arrows = const ScrollableAreaArrows(), bool showIndicator = true, Axis direction = Axis.vertical, void onRefresh(ScrollMetrics metrics)?, void onStart(ScrollMetrics metrics)?, void onMiddle(ScrollMetrics metrics)?, Future<void> onEnd(ScrollMetrics metrics)?, void onNotification(ScrollNotification notification)?, void onInit()?, ScrollController? controller, AlignmentGeometry? alignment, Widget builder(BuildContext context, Widget? child, ValueNotifier<ScrollNotification?> notifier)?, Widget? topWidget})
const

Properties

alignment AlignmentGeometry?
final
arrows ScrollableAreaArrows
final
builder Widget Function(BuildContext context, Widget? child, ValueNotifier<ScrollNotification?> notifier)?
final
child Widget
final
controller ScrollController?
final
direction Axis
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onEnd Future<void> Function(ScrollMetrics metrics)?
final
onInit → void Function()?
final
onMiddle → void Function(ScrollMetrics metrics)?
final
onNotification → void Function(ScrollNotification notification)?
final
onRefresh → void Function(ScrollMetrics metrics)?
final
onStart → void Function(ScrollMetrics metrics)?
final
paginable bool
final
refreshable bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollable bool
final
showIndicator bool
final
topWidget Widget?
final

Methods

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