SingleChildScrollView class

A box in which a single child can be scrolled vertically ororizontally.

Handles keyboard-based scrolling (arrow keys,PageUp/PageDown/Home/End).

Inheritance

Constructors

SingleChildScrollView({Key? key, required Widget child, ScrollController? controller, Axis scrollDirection = Axis.vertical, EdgeInsets? padding, FocusNode? focusNode})
Creates a SingleChildScrollView with the given child.
const

Properties

child Widget
The widget to scroll.
final
controller ScrollController?
An optional external scroll controller.
final
focusNode FocusNode?
An optional focus node for receiving key events.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another in the tree.
finalinherited
padding EdgeInsets?
Optional padding around the scrollable content.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollDirection Axis
The axis along which scrolling occurs.
final

Methods

createElement() StatefulElement
Creates the Element for this widget.
inherited
createState() State<SingleChildScrollView>
Creates the mutable state for this widget.
override
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