MyDialog constructor
const
MyDialog({
- String title = "warning",
- DialogType type = DialogType.warning,
- String body = "",
- String? confirmText,
- bool needDescription = false,
- Widget? extra,
- String defaultButtonText = "OK",
- bool hasCancel = true,
- bool needPassword = false,
- double borderRadius = 12,
- EdgeInsets contentPadding = const EdgeInsets.all(4),
- EdgeInsets padding = const EdgeInsets.all(8),
- String descriptionLabel = "Description",
Implementation
const MyDialog(
{
this.title = "warning",
this.type = DialogType.warning,
this.body = "",
this.confirmText,
this.needDescription = false,
this.extra,
this.defaultButtonText = "OK",
this.hasCancel = true,
this.needPassword = false,
this.borderRadius = 12,
this.contentPadding = const EdgeInsets.all(4),
this.padding = const EdgeInsets.all(8),
this.descriptionLabel="Description"});