mirror of
https://github.com/Iconica-Development/flutter_profile.git
synced 2025-05-19 09:13:44 +02:00
Fixed comments
This commit is contained in:
parent
2f633eff7c
commit
29a90a377b
2 changed files with 7 additions and 14 deletions
|
@ -19,12 +19,9 @@ class ItemBuilder {
|
||||||
);
|
);
|
||||||
|
|
||||||
late InputDecoration inputDecoration;
|
late InputDecoration inputDecoration;
|
||||||
if (options.inputDecorationField != null &&
|
|
||||||
options.inputDecorationField![key] != null) {
|
inputDecoration =
|
||||||
inputDecoration = options.inputDecorationField![key]!;
|
options.inputDecorationField?[key] ?? options.inputDecoration;
|
||||||
} else {
|
|
||||||
inputDecoration = options.inputDecoration;
|
|
||||||
}
|
|
||||||
|
|
||||||
return Form(
|
return Form(
|
||||||
key: formKey,
|
key: formKey,
|
||||||
|
@ -39,11 +36,7 @@ class ItemBuilder {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
validator: (value) {
|
validator: (value) {
|
||||||
if (options.validators != null &&
|
return options.validators?[key]?.call(value);
|
||||||
options.validators![key] != null) {
|
|
||||||
return options.validators![key]!(value);
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue