CLDialog<T> constructor

const CLDialog<T>({
  1. Key? key,
  2. required String title,
  3. String? subtitle,
  4. VoidCallback? onCancel,
  5. FutureOr<T?> onConfirm()?,
  6. String confirmLabel = 'Conferma',
  7. String cancelLabel = 'Annulla',
  8. Widget? headerLeading,
  9. bool showCloseButton = true,
  10. double maxWidth = 480,
  11. double? maxWidthFraction,
  12. bool scrollableBody = true,
})

Creates a CLDialog.

Implementation

const CLDialog({
  super.key,
  required this.title,
  this.subtitle,
  this.onCancel,
  this.onConfirm,
  this.confirmLabel = 'Conferma',
  this.cancelLabel = 'Annulla',
  this.headerLeading,
  this.showCloseButton = true,
  this.maxWidth = 480,
  this.maxWidthFraction,
  this.scrollableBody = true,
});