Open Draptol opened 1 year ago
Can someone help me?
I checked. Everythings work well If I downgrade to: flutter_form_builder: ^7.7.0 form_builder_validators: ^8.4.0 form_builder_extra_fields: ^8.3.0
hi, same issue here when using flutter_form_builder: ^9.1.1
.
I did a workaround where i removed the autovalidateMode: AutovalidateMode.onUserInteraction
in FormBuilder
and move it in each FormBuilderTextField
.
yes i have same isuu too
hi, same issue here when using
flutter_form_builder: ^9.1.1
.I did a workaround where i removed the
autovalidateMode: AutovalidateMode.onUserInteraction
inFormBuilder
and move it in eachFormBuilderTextField
.
This keyboard now closes, but the error under the field is not removed when user interact with the field
Is there an existing issue for this?
Package/Plugin version
9.1.0
Platforms
Flutter doctor
Flutter doctor
```bash [✓] Flutter (Channel stable, 3.13.1, on macOS 13.2.1 22D68 darwin-arm64 (Rosetta), locale pl-PL) • Flutter version 3.13.1 on channel stable at /Users/piotrchwaleba/Library/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision e1e47221e8 (5 days ago), 2023-08-22 21:43:18 -0700 • Engine revision b20183e040 • Dart version 3.1.0 • DevTools version 2.25.0 [!] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1) • Android SDK at /Users/piotrchwaleba/Library/Android/sdk • Platform android-33, build-tools 32.1.0-rc1 • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231) ! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses [✓] Xcode - develop for iOS and macOS (Xcode 14.3.1) • Xcode at /Applications/Xcode.app/Contents/Developer • Build 14E300c • CocoaPods version 1.11.3 [✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome [✓] Android Studio (version 2022.3) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231) [✓] VS Code (version 1.81.1) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension can be installed from: 🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter ```Minimal code example
Code sample
```dart ... FormBuilder( key: _formKey, autovalidateMode: AutovalidateMode.onUserInteraction, child: Column( children: [ CustomTextField( name: 'login', labelText: AppLocalizations.of(context)!.email_label, validator: FormBuilderValidators.compose([ FormBuilderValidators.required(errorText: AppLocalizations.of(context)!.required_field_error), FormBuilderValidators.email(errorText: AppLocalizations.of(context)!.wrong_email_error), ]), ), const SizedBox( height: 16, ), CustomTextField.password( name: 'password', labelText: AppLocalizations.of(context)!.password_label, validator: FormBuilderValidators.compose([ FormBuilderValidators.required(errorText: AppLocalizations.of(context)!.required_field_error), ]), ), ], ), ) .... // ---- CustomTextField ---- class CustomTextField extends StatefulWidget { final FormFieldValidatorCurrent Behavior
Form builder versions:
Test phone:
If we have focus and validation returns error we can't close keyboard. I updated my project from Flutter 2.x to 3.x and from Form builder 8.0.0 to 9.1.0. After that I have a problem with keyboard and focus. Moreover, if I move to another page I still have focus from previous page (look field "Imię" in the movie). The next problem is with FormBuilderDateTimePicker. If I open it, the keyboard will act crazy :).
Please look at my movie: https://github.com/flutter-form-builder-ecosystem/flutter_form_builder/assets/7459241/d23c1b13-12cb-4dff-9d62-5af4ee883067
Expected Behavior
It should work like in previous version of flutter or maybe Form Builder. Look at my movie from build before making any changes of flutter and form builder versions.
Movie of accepted behaviour: https://github.com/flutter-form-builder-ecosystem/flutter_form_builder/assets/7459241/0ab9b1e4-3268-4b42-8980-93f41f998cd2
Steps To Reproduce
Aditional information
No response