Skip to content

Samsung Keyboard freeze the app when changing value of obscureText of TextFormField #53052

@emiliodallatorre

Description

@emiliodallatorre

Steps to Reproduce

  1. Create a simple screen with a Form and a TextFormField inside it
  2. Declare a boolean value which determines if the text has to be obscured in TextFormField, initialize it in initState, use it as this TextFormField(..., obscureText: !visible)
  3. Open keyboard on a Samsung device and start editing text in the TextFormField
  4. Change the value of the boolean and make the text visible by setting the state setState(() => visible = true);

Expected results:
The text becomes visible.
Actual results:
The app and the keyboard freeze. I have to close it and remove from recent apps to have it working again.

It is unnecessary to say that everything works fine on other phones, on Samsung with a different keyboard and even on iOS.
It shows no error with flutter run --verbose, but if I look closely at the entire logcat I find this line repeated a lot of times:
03-22 17:21:16.782 20808 20808 V InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo@80a14e nm : it.resmedia.italk ic=io.flutter.plugin.editing.InputConnectionAdaptor@83ea26f

Logs

No error or warning or info is shown by flutter analyze regarding the login screen: everything is up-to-date and properly implemented.

[✓] Flutter (Channel master, v1.16.1, on Linux, locale it_IT.UTF-8)
    • Flutter version 1.16.1 at /home/emiliodallatorre/Documenti/SDKs/flutter
    • Framework revision e6b0f5f238 (4 days ago), 2020-03-18 21:56:02 -0400
    • Engine revision 216c420a2c
    • Dart version 2.8.0 (build 2.8.0-dev.15.0 96cf889e6b)

 
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at /home/emiliodallatorre/Android/Sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.3
    • Java binary at: /snap/android-studio/84/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at google-chrome

[✓] Android Studio (version 3.6)
    • Android Studio at /snap/android-studio/84/android-studio
    • Flutter plugin version 44.0.2
    • Dart plugin version 192.7761
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)

[!] IntelliJ IDEA Ultimate Edition (version 2019.3)
    • IntelliJ at /snap/intellij-idea-ultimate/212
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • For information about installing plugins, see
      https://flutter.dev/intellij-setup/#installing-the-plugins

[✓] Connected device (3 available)
    • PRA LX1    • 57U7N17926041887 • android-arm64  • Android 7.0 (API 24)
    • Chrome     • chrome           • web-javascript • Google Chrome 80.0.3987.149
    • Web Server • web-server       • web-javascript • Flutter Tools

! Doctor found issues in 1 category.

Metadata

Metadata

Assignees

Labels

a: text inputEntering text in a text field or keyboard related problemsc: performanceRelates to speed or footprint issues (see "perf:" labels)c: regressionIt was better in the past than it is nowe: device-specificOnly manifests on certain devicesframeworkflutter/packages/flutter repository. See also f: labels.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions