Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
2 of 7 tasks
tuan3572000 opened this issue Mar 20, 2024 · 4 comments
Open
2 of 7 tasks
Labels
bug Something isn't working

Comments

@tuan3572000
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Package/Plugin version

9.0.0, 9.2.1

Platforms

  • Android
  • iOS
  • Linux
  • MacOS
  • Web
  • Windows

Flutter doctor

Flutter doctor
[✓] 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
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

@tuan3572000 tuan3572000 added the bug Something isn't working label Mar 20, 2024
@mafreud
Copy link

mafreud commented Mar 22, 2024

The same bug happens to the Japanese.

@nghetien
Copy link

I am also getting the same error.

@phatdat-dev
Copy link

phatdat-dev commented Apr 16, 2024

same bug, Is there any solution here?

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

@netsesame2
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants