ModDialog constructor

const ModDialog({
  1. Key? key,
  2. required String title,
  3. required Widget content,
  4. required List<Widget> buttons,
  5. ButtonAlignment buttonAlignment = ButtonAlignment.right,
  6. bool dismissible = true,
  7. VoidCallback? onClose,
  8. DialogSize size = DialogSize.md,
  9. DialogPosition position = DialogPosition.center,
  10. Color? headerColor,
  11. Color? contentColor,
  12. Color? footerColor,
  13. IconData? icon,
  14. double borderRadius = 8,
})

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,
});