NiceDialog<T> constructor
const
NiceDialog<T> ({
- Key? key,
- Widget? title,
- EdgeInsetsGeometry titlePadding = const EdgeInsets.only(left: m24, top: m12, right: m24, bottom: m8),
- ShapeBorder shape = const RoundedRectangleBorder(borderRadius: BorderRadius.all(Radius.circular(8))),
- EdgeInsetsGeometry actionsPadding = const EdgeInsets.symmetric(horizontal: m16, vertical: m8),
- ObservableData<
bool> ? actionsEnabled, - bool actionClose = false,
- bool actionCancel = true,
- bool actionSubmit = true,
- bool actionSubmitAutofocus = true,
- bool contentExpanded = false,
- bool contentScrollable = false,
- BoxConstraints contentConstraints = kIsWeb ? const BoxConstraints(minWidth: 420, maxWidth: 552, minHeight: 24, maxHeight: 420) : const BoxConstraints(minWidth: 320, maxWidth: 420, minHeight: 24, maxHeight: 280),
- EdgeInsetsGeometry contentPadding = const EdgeInsets.only(left: m24, right: m24, bottom: m8),
- required Widget content,
- ValueGetter<
FutureOr< submitForm = _defaultSubmitForm,bool> > - ValueGetter<
T> ? submitResult,
Implementation
const NiceDialog({
super.key,
this.title,
this.titlePadding = const EdgeInsets.only(left: m24, top: m12, right: m24, bottom: m8),
this.shape = const RoundedRectangleBorder(borderRadius: BorderRadius.all(Radius.circular(8))),
this.actionsPadding = const EdgeInsets.symmetric(horizontal: m16, vertical: m8),
this.actionsEnabled,
this.actionClose = false,
this.actionCancel = true,
this.actionSubmit = true,
this.actionSubmitAutofocus = true,
this.contentExpanded = false,
this.contentScrollable = false,
this.contentConstraints = kIsWeb
? const BoxConstraints(minWidth: 420, maxWidth: 552, minHeight: 24, maxHeight: 420)
: const BoxConstraints(minWidth: 320, maxWidth: 420, minHeight: 24, maxHeight: 280),
this.contentPadding = const EdgeInsets.only(left: m24, right: m24, bottom: m8),
required this.content,
this.submitForm = _defaultSubmitForm,
this.submitResult,
});