singleChildScrollView method
Widget
singleChildScrollView({
- Key? key,
- Axis scrollDirection = Axis.vertical,
- bool reverse = false,
- EdgeInsetsGeometry? padding,
- bool? primary,
- ScrollPhysics? physics,
- ScrollController? controller,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- Clip clipBehavior = Clip.hardEdge,
- String? restorationId,
- ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
A box in which a single widget can be scrolled.
Implementation
Widget singleChildScrollView({
Key? key,
Axis scrollDirection = Axis.vertical,
bool reverse = false,
EdgeInsetsGeometry? padding,
bool? primary,
ScrollPhysics? physics,
ScrollController? controller,
DragStartBehavior dragStartBehavior = DragStartBehavior.start,
Clip clipBehavior = Clip.hardEdge,
String? restorationId,
ScrollViewKeyboardDismissBehavior keyboardDismissBehavior =
ScrollViewKeyboardDismissBehavior.manual,
}) {
return SingleChildScrollView(
key: key,
scrollDirection: scrollDirection,
reverse: reverse,
padding: padding,
primary: primary,
physics: physics,
controller: controller,
dragStartBehavior: dragStartBehavior,
clipBehavior: clipBehavior,
restorationId: restorationId,
keyboardDismissBehavior: keyboardDismissBehavior,
child: this,
);
}