SingleChildScrollViewModifier constructor

const SingleChildScrollViewModifier({
  1. Key? key,
  2. Widget? child,
  3. Key? modifierKey,
  4. Axis scrollDirection = Axis.vertical,
  5. bool reverse = false,
  6. EdgeInsetsGeometry? padding,
  7. bool? primary,
  8. ScrollPhysics? physics,
  9. ScrollController? controller,
  10. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  11. Clip clipBehavior = Clip.hardEdge,
  12. String? restorationId,
  13. ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
})

Creates a box in which a single widget can be scrolled.

Implementation

const SingleChildScrollViewModifier({
  super.key,
  super.child,
  super.modifierKey,
  this.scrollDirection = Axis.vertical,
  this.reverse = false,
  this.padding,
  this.primary,
  this.physics,
  this.controller,
  this.dragStartBehavior = DragStartBehavior.start,
  this.clipBehavior = Clip.hardEdge,
  this.restorationId,
  this.keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
});