refactor(registration): Autocomplete for city, numeric inputs for weight & height, examples for sports and add info

This commit is contained in:
2024-04-16 15:49:04 +03:00
parent 454c8081cd
commit 7bb9ba8bc1
8 changed files with 2327 additions and 95 deletions

View File

@@ -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,