flutter_form_builder icon indicating copy to clipboard operation
flutter_form_builder copied to clipboard

[FormBuilderTextField]: textCapitalization don't works propertly on Vivo and Realme devices

Open ChandraSignzy opened this issue 1 year ago • 6 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Package/Plugin version

9.3.0

Platforms

  • [X] Android
  • [ ] iOS
  • [ ] Linux
  • [ ] MacOS
  • [ ] Web
  • [ ] Windows

Flutter doctor

Flutter doctor
[✓] Flutter (Channel stable, 3.22.2, on Ubuntu 22.04.4 LTS 6.8.0-40-generic, locale en_US.UTF-8)
    • Flutter version 3.22.2 on channel stable at /opt/flutterLatest/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 761747bfc5 (3 months ago), 2024-06-05 22:15:13 +0200
    • Engine revision edd8546116
    • Dart version 3.4.3
    • DevTools version 2.34.3

[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /home/chandra/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
    • Chrome at google-chrome

[✗] 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 is required for Linux development.
      It is likely available from your distribution (e.g.: apt install pkg-config), or can be downloaded from
      https://www.freedesktop.org/wiki/Software/pkg-config/

[✓] VS Code (version 1.91.1)
    • VS Code at /usr/share/code
    • Flutter extension version 3.94.0

[✓] Connected device (3 available)
    • SM M015G (mobile) • R9ZN90BSHQH • android-arm    • Android 12 (API 31)
    • Linux (desktop)   • linux       • linux-x64      • Ubuntu 22.04.4 LTS 6.8.0-40-generic
    • Chrome (web)      • chrome      • web-javascript • Google Chrome 127.0.6533.72

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 2 categories.

Minimal code example

Code sample

FormBuilderTextField(
      name: variable,
      keyboardType: textInputType,
      textCapitalization:TextCapitalization.characters,
      obscureText: obfuscate,
      maxLines: null,
      autocorrect: autocorrect,
    )

Current Behavior

The keyboard is lower case on default when interacted

Noticed this bug in Vivo and Realme phone. It is working as expected in Samsung phone

Expected Behavior

should be uppercase by default as set (textCapitalization:TextCapitalization.characters)

Steps To Reproduce

Implement the given snipped and interact with the text field in vivo or realme phone.

Aditional information

ChandraSignzy avatar Sep 02 '24 09:09 ChandraSignzy

Same problem here for textCapitalization: TextCapitalization.words, it's lowercase by default for first character

benjamincombes avatar Sep 03 '24 15:09 benjamincombes

Someone can test with Flutter own widget TextFormField? Maybe is bug in this widget, that is used by FormBuilderTextField

deandreamatias avatar Sep 03 '24 17:09 deandreamatias

Someone can test with Flutter own widget TextFormField? Maybe is bug in this widget, that is used by FormBuilderTextField

Checked this on Android. Flutter's TextFormField works as expected. The issue lies within FormBuilderTextField.

ShahSomething avatar Sep 10 '24 19:09 ShahSomething

@ShahSomething do you test this behavior on Vivo or Realme device?

deandreamatias avatar Dec 26 '24 16:12 deandreamatias

I don't have a Vivo or Realme device, so can't test for now :(

deandreamatias avatar Dec 26 '24 16:12 deandreamatias

I am experiencing the same issue with TextCapitalization none of the options (words, characters, sentences) work.

daylightcreative avatar Feb 02 '25 12:02 daylightcreative