ScrollableBottomSheetConfig constructor

const ScrollableBottomSheetConfig({
  1. required BottomSheetChildBuilder builder,
  2. double initialChildSize = 0.5,
  3. double minChildSize = 0.25,
  4. double maxChildSize = 1.0,
  5. bool expand = false,
  6. bool snap = true,
  7. List<double>? snapSizes,
  8. DraggableScrollableController? controller,
  9. bool isScrollControlled = true,
  10. bool enableDrag = true,
  11. bool adjustToKeyboardChanges = true,
})

Implementation

const ScrollableBottomSheetConfig({
  required super.builder,
  this.initialChildSize = 0.5,
  this.minChildSize = 0.25,
  this.maxChildSize = 1.0,
  this.expand = false,
  this.snap = true,
  this.snapSizes,
  this.controller,
  super.isScrollControlled = true,
  super.enableDrag = true,
  // need to wrap the builder with a scroll controller, otherwise the adjustments
  // for keyboard changes wouldn't work
  super.adjustToKeyboardChanges,
});