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