forked from eatvio/eatvio_app
refactor(registration): Autocomplete for city, numeric inputs for weight & height, examples for sports and add info
This commit is contained in:
@@ -28,6 +28,7 @@ class CustomTextFormField extends StatelessWidget {
|
||||
this.filled = true,
|
||||
this.validator,
|
||||
this.keyboardType,
|
||||
this.onFieldSubmitted,
|
||||
this.onSaved,
|
||||
}) : super(
|
||||
key: key,
|
||||
@@ -56,6 +57,7 @@ class CustomTextFormField extends StatelessWidget {
|
||||
final bool? filled;
|
||||
final TextInputType? keyboardType;
|
||||
final FormFieldValidator<String>? validator;
|
||||
final Function(String)? onFieldSubmitted;
|
||||
final void Function(String?)? onSaved;
|
||||
|
||||
@override
|
||||
@@ -73,6 +75,7 @@ class CustomTextFormField extends StatelessWidget {
|
||||
obscureText: obscureText!,
|
||||
textInputAction: textInputAction,
|
||||
maxLines: maxLines ?? 1,
|
||||
onFieldSubmitted: onFieldSubmitted,
|
||||
decoration: InputDecoration(
|
||||
hintText: hintText ?? "",
|
||||
hintStyle: hintStyle ?? theme.textTheme.bodyLarge,
|
||||
|
||||
Reference in New Issue
Block a user