ScrollableBottomSheetConfig constructor
const
ScrollableBottomSheetConfig({
- required BottomSheetChildBuilder builder,
- double initialChildSize = 0.5,
- double minChildSize = 0.25,
- double maxChildSize = 1.0,
- bool expand = false,
- bool snap = true,
- List<
double> ? snapSizes, - DraggableScrollableController? controller,
- bool isScrollControlled = true,
- bool enableDrag = true,
- 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,
});