ModModal constructor

const ModModal({
  1. Key? key,
  2. required Widget header,
  3. required Widget body,
  4. required Widget footer,
  5. Color? headerColor,
  6. Color? bodyColor,
  7. Color? footerColor,
  8. ModModalPosition position = ModModalPosition.center,
  9. ModModalSize size = ModModalSize.md,
  10. ModModalHeight height = ModModalHeight.normal,
  11. bool fullScreen = false,
  12. double borderRadius = 8.0,
  13. bool barrierDismissible = true,
  14. VoidCallback? onClose,
  15. double? maxWidth,
  16. double? minWidth,
  17. double? maxHeight,
  18. double? minHeight,
  19. 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,
});