ConstrainedScrollView constructor
const
ConstrainedScrollView({
- Axis scrollDirection = Axis.vertical,
- bool reverse = false,
- EdgeInsetsGeometry padding = EdgeInsets.zero,
- bool? primary,
- ScrollPhysics? physics,
- ScrollController? controller,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- Clip clipBehavior = Clip.hardEdge,
- String? restorationId,
- ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
- BoxConstraintsBuilder? constraintsBuilder,
- Widget? child,
- Key? key,
A constrained box in which a single widget can be scrolled.
It's combination of SingleChildScrollView and LayoutBuilder. ConstrainedScrollView includes all configuration of those widgets.
Implementation
const ConstrainedScrollView({
this.scrollDirection = Axis.vertical,
this.reverse = false,
this.padding = EdgeInsets.zero,
this.primary,
this.physics,
this.controller,
this.dragStartBehavior = DragStartBehavior.start,
this.clipBehavior = Clip.hardEdge,
this.restorationId,
this.keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
this.constraintsBuilder,
this.child,
Key? key,
}) : super(key: key);