ModDialog constructor
const
ModDialog({
- Key? key,
- required String title,
- required Widget content,
- required List<
Widget> buttons, - ButtonAlignment buttonAlignment = ButtonAlignment.right,
- bool dismissible = true,
- VoidCallback? onClose,
- DialogSize size = DialogSize.md,
- DialogPosition position = DialogPosition.center,
- Color? headerColor,
- Color? contentColor,
- IconData? icon,
- double borderRadius = 8,
- double? maxWidth,
- double? minWidth,
- double? maxHeight,
- double? minHeight,
Implementation
const ModDialog({
super.key,
required this.title,
required this.content,
required this.buttons,
this.buttonAlignment = ButtonAlignment.right,
this.dismissible = true,
this.onClose,
this.size = DialogSize.md,
this.position = DialogPosition.center,
this.headerColor,
this.contentColor,
this.footerColor,
this.icon,
this.borderRadius = 8,
this.maxWidth,
this.minWidth,
this.maxHeight,
this.minHeight,
});