mirror of
https://github.com/Iconica-Development/flutter_profile.git
synced 2025-05-18 16:53:45 +02:00
Merge pull request #10 from Iconica-Development/feature/keyboardtypes
added itembuilder option keyboard type
This commit is contained in:
commit
37c39ef24e
2 changed files with 3 additions and 0 deletions
|
@ -24,6 +24,7 @@ class ItemBuilder {
|
|||
options.inputDecorationField?[key] ?? options.inputDecoration;
|
||||
var formFieldKey = GlobalKey<FormFieldState>();
|
||||
return TextFormField(
|
||||
keyboardType: options.keyboardType?[key],
|
||||
key: formFieldKey,
|
||||
controller: controller,
|
||||
decoration: inputDecoration,
|
||||
|
|
|
@ -13,10 +13,12 @@ class ItemBuilderOptions {
|
|||
this.inputDecorationField,
|
||||
this.readOnly = false,
|
||||
this.validators,
|
||||
this.keyboardType,
|
||||
});
|
||||
|
||||
final InputDecoration inputDecoration;
|
||||
final Map<String, InputDecoration>? inputDecorationField;
|
||||
final bool readOnly;
|
||||
final Map<String, String? Function(String?)>? validators;
|
||||
final Map<String, TextInputType>? keyboardType;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue