DynamicSingleChildScrollView class

Both Android and IOS


SingleChildScrollView's documentation:

Material ScrollBar's documentation:

Cupertino's CupertinoScrollBar's documentation:
Returns a SingleChildScrollView Widget wrapped in the appropriate scrollbar depending on this user's devices' operating system.

Inheritance

Constructors

DynamicSingleChildScrollView({Key? key, Axis scrollDirection = Axis.vertical, bool reverse = false, EdgeInsetsGeometry? padding, bool? primary, ScrollPhysics? physics, ScrollController? controller, Widget? child, DragStartBehavior dragStartBehavior = DragStartBehavior.start, Clip clipBehavior = Clip.hardEdge, String? restorationId, ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual, bool? isAlwaysShown = false, bool? trackVisibility, bool? showTrackOnHover, double? hoverThickness, double? thickness = defaultThickness, Radius? radius = defaultRadius, ScrollNotificationPredicate? notificationPredicate, bool? interactive, ScrollbarOrientation? scrollbarOrientation, double thicknessWhileDragging = defaultThicknessWhileDragging, Radius radiusWhileDragging = defaultRadiusWhileDragging})

Properties

child Widget?
Both Android and IOS
final
clipBehavior Clip
The content will be clipped (or not) according to this option.
final
controller ScrollController?
Both Android and IOS
final
dragStartBehavior DragStartBehavior
final
hashCode int
The hash code for this object.
no setterinherited
hoverThickness double?
The thickness of the scrollbar when a hover state is active and showTrackOnHover is true.
final
interactive bool?
final
isAlwaysShown bool?
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
keyboardDismissBehavior ScrollViewKeyboardDismissBehavior
final
notificationPredicate ScrollNotificationPredicate?
Both Android and IOS
final
padding EdgeInsetsGeometry?
The amount of space by which to inset the child.
final
physics ScrollPhysics?
How the scroll view should respond to user input.
final
primary bool
Whether this is the primary scroll view associated with the parent PrimaryScrollController.
final
radius Radius?
The Radius of the scrollbar thumb's rounded rectangle corners.
final
radiusWhileDragging Radius
The radius of the scrollbar edges when the scrollbar is being dragged by the user.
final
restorationId String?
final
reverse bool
Whether the scroll view scrolls in the reading direction.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollbarOrientation ScrollbarOrientation?
Both Android and IOS
final
scrollDirection Axis
The axis along which the scroll view scrolls.
final
showTrackOnHover bool?
Controls if the track will show on hover and remain, including during drag.
final
thickness double?
The thickness of the scrollbar in the cross axis of the scrollable.
final
thicknessWhileDragging double
The thickness of the scrollbar when it's being dragged by the user.
final
trackVisibility bool?
Controls the track visibility.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() DynamicSingleChildScrollViewState
Creates the mutable state for this widget at a given location in the tree.
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

Constants

defaultRadius → const Radius
Default value for radius if it's not specified in CupertinoScrollbar.
defaultRadiusWhileDragging → const Radius
Default value for radiusWhileDragging if it's not specified in CupertinoScrollbar.
defaultThickness → const double
Default value for thickness if it's not specified in CupertinoScrollbar.
defaultThicknessWhileDragging → const double
Default value for thicknessWhileDragging if it's not specified in CupertinoScrollbar.