ModModal constructor
const
ModModal({
- Key? key,
- required Widget header,
- required Widget body,
- Color? headerColor,
- Color? bodyColor,
- ModModalPosition position = ModModalPosition.center,
- ModModalSize size = ModModalSize.md,
- ModModalHeight height = ModModalHeight.normal,
- bool fullScreen = false,
- double borderRadius = 8.0,
- bool barrierDismissible = true,
- VoidCallback? onClose,
- double? maxWidth,
- double? minWidth,
- double? maxHeight,
- double? minHeight,
- EdgeInsets? padding,
Implementation
const ModModal({
super.key,
required this.header,
required this.body,
required this.footer,
this.headerColor,
this.bodyColor,
this.footerColor,
this.position = ModModalPosition.center,
this.size = ModModalSize.md,
this.height = ModModalHeight.normal,
this.fullScreen = false,
this.borderRadius = 8.0,
this.barrierDismissible = true,
this.onClose,
this.maxWidth,
this.minWidth,
this.maxHeight,
this.minHeight,
this.padding,
});