Skip to content

TextFormField not responding to inputs on Android when typing on Microsoft SwiftKey #83213

@omchiii

Description

@omchiii

This issue started appearing after upgrading to Flutter 2.2. I could only reproduce this issue on Android devices that use MicrosoftSwiftKey(only Flutter 2.2). IOS works fine. Android devices that use GBoard work fine as well.

Steps to Reproduce

  1. https://github.com/omchiii/swiftkey-crash clone repo.
  2. Switch to MicrosoftSwiftKey keyboard.
  3. Add a TextFormField widget inside a form with "FilteringTextInputFormatter.digitsOnly".
  4. Start quickly typing letters, then digits.

Video : https://drive.google.com/file/d/1C506f5S_ZYM_0GrmFodZtVhI4IpCqA3W/view?usp=sharing

Expected results:
I wanted to be able to type again.

Actual results:
Form field is not responding to the input, even If a digit is typed.

Logs

Analyzing asdddd...
No issues found! (ran in 8.8s)


[   +1 ms] An Observatory debugger and profiler on sdk gphone x86 arm is available at:
           http://127.0.0.1:59743/OEx14KC1Qng=/
[  +80 ms] Activating Dart DevTools...
[+7415 ms] E/SpannableStringBuilder(11195): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero
length
[        ] E/SpannableStringBuilder(11195): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero
length
[        ] W/ListenableEditingState(11195): a listener was added to EditingState while a batch
edit was in progress
[   +7 ms] W/IInputConnectionWrapper(11195): endBatchEdit on inactive InputConnection
[ +310 ms] W/IInputConnectionWrapper(11195): getExtractedText on inactive InputConnection
[        ] W/IInputConnectionWrapper(11195): getTextBeforeCursor on inactive InputConnection
[+1005 ms] E/SpannableStringBuilder(11195): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero
length
[ +271 ms] I/chatty  (11195): uid=10159(com.example.asdddd) identical 2 lines
[  +37 ms] E/SpannableStringBuilder(11195): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero
length
[ +100 ms] Activating Dart DevTools... (completed in 9.1s)
[ +959 ms] The Flutter DevTools debugger and profiler on sdk gphone x86 arm is available at:
                    http://127.0.0.1:9101?uri=http%3A%2F%2F127.0.0.1%3A59743%2FOEx14KC1Qng%3D%2F

[✓] Flutter (Channel stable, 2.2.0, on macOS 11.2.3 20D91 darwin-x64, locale en-BA)
• Flutter version 2.2.0 at /Users/omerbayram/Documents/development/flutter
• Framework revision b227420 (8 days ago), 2021-05-14 19:12:57 -0700
• Engine revision a9d88a4d18
• Dart version 2.13.0

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at /Users/omerbayram/Library/Android/sdk
• Platform android-30, build-tools 30.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.4, Build version 12D4e
• CocoaPods version 1.10.1

[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.1)
• 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 1.8.0_242-release-1644-b3-6915495)

[✓] VS Code (version 1.56.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.22.0

[✓] Connected device (2 available)
• sdk gphone x86 arm (mobile) • emulator-5554 • android-x86 • Android 11 (API 30)
(emulator)
• Chrome (web) • chrome • web-javascript • Google Chrome 90.0.4430.212

• No issues found!

Metadata

Metadata

Labels

P1High-priority issues at the top of the work lista: text inputEntering text in a text field or keyboard related problemsc: regressionIt was better in the past than it is nowengineflutter/engine related. See also e: labels.found in release: 2.2Found to occur in 2.2found in release: 2.3Found to occur in 2.3has reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-androidAndroid applications specificallyr: fixedIssue is closed as already fixed in a newer version

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions