Enter key is not working properly in Additional Notes TextFormField for the redux APP
Hi, I am not sure if this is a bug in redux app or flutter. I am new to flutter.
I am not a native English speaker, I will try to express this UI bug as clear as possible.
For the app flutter_architecture_samples/example/redux, in the Additional Notes on add_edit_screen.dart screen, the Enter key (the cursor) is not working properly.
Most of times (90%+ not 100%), when I type something in the keyboard and press Enter, it inserts '\n' but the cursor position is not updated and still at the old previous line. If I continue to type some text, the new text will automatically appear in the newline. If I type something in the keyboard and press Enter twice, the cursor will go to the next new line, but it actually inserts two newlines. Well, it's hard to describe in words, I upload a screencast that you can get it here: http://yaochi.fun/tmp/redux_ex_uibug.mp4
Regardless whether or not the newline character should be inserted when I press Enter, the cursor should always be at the correct position, but it's not at the moment.
Environment:
Android version: 7.1.1
latest flutter:
[✓] Flutter (on Linux, locale en_US.UTF-8, channel master)
• Flutter at /home/user/opt/flutter
• Framework revision 324ef1d1f6 (2 days ago), 2017-12-05 19:17:58 -0800
• Engine revision b57fca02b5
• Tools Dart version 1.25.0-dev.11.0
• Engine Dart version 2.0.0-edge.d4cfecb1065d322d3670df7e9ec9a0cc2d4b90f0
[✓] Android toolchain - develop for Android devices (Android SDK 25.0.3)
• Android SDK at /home/song/Android/Sdk
• Android NDK location not configured (this optional configuration is useful for native profiling support)
• Platform android-25, build-tools 25.0.3
• ANDROID_HOME = /home/song/Android/Sdk
• Java binary at: /opt/android-studio/jre/bin/java
• Java version openjdk version "1.8.0_152-release"
[✓] Android Studio (version 3.0)
• Android Studio at /opt/android-studio
• Java version openjdk version "1.8.0_152-release"