ModalBuilder.bottomSheet constructor
const
ModalBuilder.bottomSheet({
- Key? key,
- ModalWidgetBuilder? builder,
- required Widget child,
- bool shouldBlurBackground = false,
- double blurAmount = 3.0,
- Function? onDismissed,
- Function? onExpanded,
- bool isDismissable = true,
- bool isExpandable = false,
- double? size,
- double expandedPercentageSize = 85,
- double contentPaddingByDragHandle = 35.0,
- Color? modalColor,
- Color barrierColor = Colors.transparent,
- bool blockBackgroundInteraction = false,
- String? id,
Creates a ModalBuilder for bottom sheet modals
This is an alias for the default constructor with clearer intent.
Implementation
const ModalBuilder.bottomSheet({
super.key,
this.builder,
required this.child,
this.shouldBlurBackground = false,
this.blurAmount = 3.0,
this.onDismissed,
this.onExpanded,
this.isDismissable = true,
this.isExpandable = false,
this.size,
this.expandedPercentageSize = 85,
this.contentPaddingByDragHandle = 35.0,
this.modalColor,
this.barrierColor = Colors.transparent,
this.blockBackgroundInteraction = false,
this.id,
}) : modalType = ModalType.sheet,
modalPosition = Alignment.bottomCenter,
modalAnimationType = ModalAnimationType.fade,
isDraggable = false,
isSwipeable = true,
autoDismissDuration = null,
snackbarDisplayMode = SnackbarDisplayMode.staggered,
maxStackedSnackbars = 3,
snackbarWidth = null;