ModalBuilder constructor

const ModalBuilder({
  1. Key? key,
  2. ModalWidgetBuilder? builder,
  3. required Widget child,
  4. bool shouldBlurBackground = false,
  5. double blurAmount = 3.0,
  6. Function? onDismissed,
  7. Function? onExpanded,
  8. ModalType modalType = ModalType.sheet,
  9. Alignment modalPosition = Alignment.bottomCenter,
  10. ModalAnimationType modalAnimationType = ModalAnimationType.fade,
  11. bool isDismissable = true,
  12. bool isDraggable = false,
  13. bool isExpandable = false,
  14. double? size,
  15. double expandedPercentageSize = 85,
  16. double contentPaddingByDragHandle = 35.0,
  17. bool isSwipeable = true,
  18. Duration? autoDismissDuration,
  19. SnackbarDisplayMode snackbarDisplayMode = SnackbarDisplayMode.staggered,
  20. int maxStackedSnackbars = 3,
  21. Color? modalColor,
  22. Color barrierColor = Colors.transparent,
  23. bool blockBackgroundInteraction = false,
  24. double? snackbarWidth,
  25. 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,
});