flutter-form-builder-ecosystem / flutter_form_builder

Simple form maker for Flutter Framework
https://pub.dev/packages/flutter_form_builder
MIT License
1.48k stars 535 forks source link

[FormBuilderTextField]: Cannot type the latin text (Vietnamese) on Android #1375

Closed tuan3572000 closed 3 months ago

tuan3572000 commented 6 months ago

Is there an existing issue for this?

Package/Plugin version

9.0.0, 9.2.1

Platforms

Flutter doctor

Flutter doctor ```bash [✓] Flutter (Channel stable, 3.19.0, on Fedora Linux 39 (Thirty Nine) 6.1.11-200.fc37.x86_64, locale en_GB.UTF-8) • Flutter version 3.19.0 on channel stable at /home/approved/fvm/versions/3.19.0 • Upstream repository https://github.com/flutter/flutter.git • Framework revision bae5e49bc2 (5 weeks ago), 2024-02-13 17:46:18 -0800 • Engine revision 04817c99c9 • Dart version 3.3.0 • DevTools version 2.31.1 [!] Android toolchain - develop for Android devices (Android SDK version 30.0.2) • Android SDK at /home/approved/Android/Sdk ✗ cmdline-tools component is missing Run `path/to/sdkmanager --install "cmdline-tools;latest"` See https://developer.android.com/studio/command-line for more details. ✗ Android license status unknown. Run `flutter doctor --android-licenses` to accept the SDK licenses. See https://flutter.dev/docs/get-started/install/linux#android-setup for more details. [✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome) ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable. [✗] Linux toolchain - develop for Linux desktop ✗ clang++ is required for Linux development. It is likely available from your distribution (e.g.: apt install clang), or can be downloaded from https://releases.llvm.org/ ✗ CMake is required for Linux development. It is likely available from your distribution (e.g.: apt install cmake), or can be downloaded from https://cmake.org/download/ ✗ ninja is required for Linux development. It is likely available from your distribution (e.g.: apt install ninja-build), or can be downloaded from https://github.com/ninja-build/ninja/releases • pkg-config version 1.9.5 ✗ GTK 3.0 development libraries are required for Linux development. They are likely available from your distribution (e.g.: apt install libgtk-3-dev) [✓] Android Studio (version 2022.2) • Android Studio at /home/approved/Programming/Environment/Android/android-studio-2022.2.1.20-linux/android-studio • Flutter plugin version 76.3.1 • Dart plugin version 222.4582 • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694) [✓] IntelliJ IDEA Community Edition (version 2023.2) • IntelliJ at /home/approved/Programming/Environment/ideaIC-2023.2.1/idea-IC-232.9559.62 • 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 [✓] VS Code (version 1.75.1) • VS Code at /usr/share/code • Flutter extension version 3.14.1 [✓] Connected device (2 available) • sdk gphone64 x86 64 (mobile) • emulator-5554 • android-x64 • Android 14 (API 34) (emulator) • Linux (desktop) • linux • linux-x64 • Fedora Linux 39 (Thirty Nine) 6.1.11-200.fc37.x86_64 [✓] Network resources • All expected network resources are available. ! Doctor found issues in 3 categories ```

Minimal code example

Code sample ```dart FormBuilderTextField( keyboardType: TextInputType.multiline, name: "meaningTranslated", minLines: 1, maxLines: 20, onChanged: (value) => fbKey!.currentState!.save(), textAlign: TextAlign.left, decoration: InputDecoration( labelText: i18("Definition in ${getMotherTongueLanguage(code: this.dictionaryTranslatedDto?.getNativeLanguageCountryCode())}"), ), ), ```

Current Behavior

Cannot type any Vietnamese text eg. when typing aa in TeLex input method in Vietnamese keyboard, it should remain aa

Expected Behavior

When typing aa in TeLex input method in Vietnamese keyboard, it should appear as â

Steps To Reproduce

  1. Open Android app
  2. In any input field which is using FormBuilderTextField
  3. Configure keyboard in Vietnamese and input method is Telex
  4. Trying to type aa

Aditional information

I try another text field in my app which is using other library eg.flutter_typeahead. It works as expected. I am able to input Vietnamese text normally

mafreud commented 6 months ago

The same bug happens to the Japanese.

nghetien commented 6 months ago

I am also getting the same error.

phatdat-dev commented 5 months ago

same bug, Is there any solution here?

edit: i try setting attribute "enableSuggestions = true", it works for me

netsesame2 commented 5 months ago

same bug, Is there any solution here?

edit: i try setting attribute "enableSuggestions = true", it works for me

It works. However, enableSuggestions is set to false as default.