AForm<T> constructor
const
AForm<T> ({
- Key? key,
- required List<
Widget> fields, - List<
Widget> ? rightFields, - required T fromJson(
- dynamic
- List<
Widget> actions = const <Widget>[], - Color? backgroundColor,
- bool backIcon = true,
- bool backButton = false,
- bool obscureAll = false,
- dynamic initialData,
- String? submitText,
- EdgeInsets padding = const EdgeInsets.all(20),
- double fieldsPadding = 5,
- double actionsPadding = 5,
- required Future<
String?> onSubmit(- T
- Future<
void> onCancelled()?, - void onSuccess()?,
- void onLoadingChange(
- bool loading
- bool showAllForm = true,
- bool showDefaultAction = true,
- Color? actionColor,
- dynamic setterChanges(
- T
- double minDualColumWidth = 600,
- Widget? fieldsTitle,
- Widget? rightFieldsTitle,
- Widget? topBar,
Implementation
const AForm({
super.key,
required this.fields,
this.rightFields,
required this.fromJson,
this.actions = const <Widget>[],
this.backgroundColor,
this.backIcon = true,
this.backButton = false,
this.obscureAll = false,
this.initialData,
this.submitText,
this.padding = const EdgeInsets.all(20),
this.fieldsPadding = 5,
this.actionsPadding = 5,
required this.onSubmit,
this.onCancelled,
this.onSuccess,
this.onLoadingChange,
this.showAllForm = true,
this.showDefaultAction = true,
this.actionColor,
this.setterChanges,
this.minDualColumWidth = 600,
this.fieldsTitle,
this.rightFieldsTitle,
this.topBar,
});