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
TextFormField backspace delete 2 characters at a time #71404
Comments
Hi @jinfagang |
Also reported via Google internal issue: b/174115450 |
Duplicate of #70744? |
@LongCatIsLooong @tadaspetra @TahaTesser thanks for your response. Also, it seems happend with Chinese input, but sometimes English alphabetas would also happend. Also, my InputType is not number, but text. |
Also, I seems not got this except I switched to master and it happened for some reason. Does the master fixed it now? I shall upgrade my flutter? |
Hi @jinfagang code sampleimport 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Material App',
theme: ThemeData.dark(),
home: Home(),
);
}
}
class Home extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('Material App Bar'),
),
body: Center(
child: TextFormField(
decoration: InputDecoration(
contentPadding: EdgeInsets.all(0),
hintText: "任务标题",
),
maxLines: null,
keyboardType: TextInputType.text,
textInputAction: TextInputAction.done,
),
),
floatingActionButton: FloatingActionButton(
child: Icon(Icons.add),
onPressed: () {},
),
);
}
}
flutter doctor -v[✓] Flutter (Channel stable, 1.22.4, on macOS 11.0.1 20B29 darwin-x64, locale
en-GB)
• Flutter version 1.22.4 at /Users/tahatesser/Code/flutter_stable
• Framework revision 1aafb3a8b9 (3 weeks ago), 2020-11-13 09:59:28 -0800
• Engine revision 2c956a31c0
• Dart version 2.10.4
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at /Users/tahatesser/Code/sdk
• Platform android-30, build-tools 30.0.2
• ANDROID_HOME = /Users/tahatesser/Code/sdk
• 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 12.2)
• Xcode at /Volumes/Extreme/Xcode.app/Contents/Developer
• Xcode 12.2, Build version 12B45b
• CocoaPods version 1.10.0
[!] Android Studio (version 4.1)
• Android Studio at /Applications/Android Studio.app/Contents
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build
1.8.0_242-release-1644-b3-6915495)
[✓] VS Code (version 1.51.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.16.0
[✓] Connected device (2 available)
• RMX2001 (mobile) • EUYTFEUSQSRGDA6D • android-arm64 • Android
10 (API 29)
• Taha’s iPad (mobile) • 00008020-000255113EE8402E • ios • iOS
14.2
! Doctor found issues in 1 category. [✓] Flutter (Channel master, 1.24.0-8.0.pre.406, on macOS 11.0.1 20B29
darwin-x64, locale en-GB)
• Flutter version 1.24.0-8.0.pre.406 at
/Users/tahatesser/Code/flutter_master
• Framework revision 60bdcf55fe (2 hours ago), 2020-12-01 21:24:21 -0800
• Engine revision 20caf54969
• Dart version 2.12.0 (build 2.12.0-76.0.dev)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at /Users/tahatesser/Code/sdk
• Platform android-30, build-tools 30.0.2
• ANDROID_HOME = /Users/tahatesser/Code/sdk
• 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 12.2)
• Xcode at /Volumes/Extreme/Xcode.app/Contents/Developer
• Xcode 12.2, Build version 12B45b
• CocoaPods version 1.10.0
[✓] 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.51.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.16.0
[✓] Connected device (5 available)
• RMX2001 (mobile) • EUYTFEUSQSRGDA6D • android-arm64 •
Android 10 (API 29)
• Taha’s iPad (mobile) • 00008020-000255113EE8402E • ios • iOS
14.2
• macOS (desktop) • macos • darwin-x64 • macOS
11.0.1 20B29 darwin-x64
• Web Server (web) • web-server • web-javascript •
Flutter Tools
• Chrome (web) • chrome • web-javascript • Google
Chrome 87.0.4280.67
• No issues found! |
@TahaTesser Hi, thanks for response. As this thread track: #70744 it seems happened in master previous, but it may fixed by someone. I am not sure is work on my side. I will test it later and post a video to show it. |
I had this problem too. When I delete a Chinese character or a number character, 2 Chinese characters will be deleted. |
I'm also facing the same issue, 2 characters ll be deleted at a time... it seems it happened after I switched to beta version of Flutter SDK.. |
I've solved it! You just need to switch the Flutter branch to master. At least I solved it this way. |
I have the same issue when on the beta channel, backspace always deletes two characters. Works correctly on stable channel. Stable channel flutter doctor -v:flutter doctor -v [√] Flutter (Channel stable, 1.22.4, on Microsoft Windows [Version 10.0.19041.630], locale de-CH) • Flutter version 1.22.4 at C:\flutter • Framework revision 1aafb3a (4 weeks ago), 2020-11-13 09:59:28 -0800 • Engine revision 2c956a31c0 • Dart version 2.10.4[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2) [!] Android Studio (version 4.1.0) [√] Connected device (1 available) ! Doctor found issues in 1 category. Beta channel flutter doctor -v:flutter doctor -v [√] Flutter (Channel beta, 1.24.0-10.2.pre, on Microsoft Windows [Version 10.0.19041.630], locale de-CH) • Flutter version 1.24.0-10.2.pre at C:\flutter • Framework revision 022b333 (3 weeks ago), 2020-11-18 11:35:09 -0800 • Engine revision 07c1eed46b • Dart version 2.12.0 (build 2.12.0-29.10.beta)[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2) [√] Chrome - develop for the web [√] Android Studio (version 4.1.0) [√] Connected device (4 available) • No issues found! |
@rgisi @raveesh08 |
@TahaTesser master channel seems to work fine. 2 characters got deleted when on the beta channel, but not when on master channel. flutter doctor -v[√] Flutter (Channel master, 1.25.0-5.0.pre.125, on Microsoft Windows [Version 10.0.19041.630], locale de-CH) • Flutter version 1.25.0-5.0.pre.125 at C:\flutter • Framework revision a12e2a4 (7 hours ago), 2020-12-08 23:13:04 -0500 • Engine revision df39e5c • Dart version 2.12.0 (build 2.12.0-133.0.dev)[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2) [√] Chrome - develop for the web [√] Android Studio (version 4.1.0) [√] Connected device (3 available) • No issues found! |
@TahaTesser Currently i like to continue with beta version only i can't switch to master version. but i found out one more clue regarding that issue... |
@jinfagang try removing |
got the same issue on beta flutter doctor switching to channel master solved the issue : |
I got the same issue. This bug only happen in Android. flutter doctor -v
|
It's not working for me. |
Same. However the problem only occurs for me when I'm using the physical computer keyboard (with the emulator). The on screen keyboard works correct for me. 🤷 |
Facing the same issue when using flutter doctor -v
|
JFYI, it seems the root cause has been already fixed in the flutter engine (flutter/engine#22626) and the fix is available since ref:
I think this is duplicate of #70744. #70744 mentioned |
I'm facing this in stable branch while building linux desktop app. |
Same here on ubuntu 20.04 |
Me too, but in windows 10 |
This issue seems to no longer reproduce. It looks like there may have been a couple of different issues in this thread. But I don't reproduce the issue either with If someone's still seeing an issue like this one, please file it as a fresh issue thread, filling in all the information requested in the issue template, and then someone can take a look. |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Hi, I am using TextFormField input Chinese characters, but when using backspace deleting, everytime 2 characters will remove.
my TextFormField seems normal:
Does anybody knows why????????????????????
The text was updated successfully, but these errors were encountered: