ConstrainedScrollView constructor

const ConstrainedScrollView({
  1. Axis scrollDirection = Axis.vertical,
  2. bool reverse = false,
  3. EdgeInsetsGeometry padding = EdgeInsets.zero,
  4. bool? primary,
  5. ScrollPhysics? physics,
  6. ScrollController? controller,
  7. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  8. Clip clipBehavior = Clip.hardEdge,
  9. String? restorationId,
  10. ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
  11. BoxConstraintsBuilder? constraintsBuilder,
  12. Widget? child,
  13. 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);