DraggableScrollableSheetModifier constructor

const DraggableScrollableSheetModifier({
  1. Key? key,
  2. Widget? child,
  3. Key? modifierKey,
  4. double initialChildSize = 0.5,
  5. double minChildSize = 0.25,
  6. double maxChildSize = 1.0,
  7. bool expand = true,
  8. bool snap = false,
  9. List<double>? snapSizes,
  10. DraggableScrollableController? controller,
  11. required SingleChildScrollableWidgetBuilder builder,
})

Creates a widget that can be dragged and scrolled in a single gesture.

The builder, initialChildSize, minChildSize, maxChildSize and expand parameters must not be null.

Implementation

const DraggableScrollableSheetModifier({
  super.key,
  super.child,
  super.modifierKey,
  this.initialChildSize = 0.5,
  this.minChildSize = 0.25,
  this.maxChildSize = 1.0,
  this.expand = true,
  this.snap = false,
  this.snapSizes,
  this.controller,
  required this.builder,
});