NiceDialog<T> constructor

const NiceDialog<T>({
  1. Key? key,
  2. Widget? title,
  3. EdgeInsetsGeometry titlePadding = const EdgeInsets.only(left: m24, top: m12, right: m24, bottom: m8),
  4. ShapeBorder shape = const RoundedRectangleBorder(borderRadius: BorderRadius.all(Radius.circular(8))),
  5. EdgeInsetsGeometry actionsPadding = const EdgeInsets.symmetric(horizontal: m16, vertical: m8),
  6. ObservableData<bool>? actionsEnabled,
  7. bool actionClose = false,
  8. bool actionCancel = true,
  9. bool actionSubmit = true,
  10. bool actionSubmitAutofocus = true,
  11. bool contentExpanded = false,
  12. bool contentScrollable = false,
  13. BoxConstraints contentConstraints = kIsWeb ? const BoxConstraints(minWidth: 420, maxWidth: 552, minHeight: 24, maxHeight: 420) : const BoxConstraints(minWidth: 320, maxWidth: 420, minHeight: 24, maxHeight: 280),
  14. EdgeInsetsGeometry contentPadding = const EdgeInsets.only(left: m24, right: m24, bottom: m8),
  15. required Widget content,
  16. ValueGetter<FutureOr<bool>> submitForm = _defaultSubmitForm,
  17. 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,
});