Closed
Description
Another issue similar to issue #18483
After input some text, and click the left side of the textfield
the cursor is still at the end of the textfield, while the actual focus is at the start of the textfield.
You can see from the gif how new characters are appended, and also how backspace stop working after additional characters are deleted.
import 'package:flutter/material.dart';
void main() => runApp(new MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return new MaterialApp(
title: 'Flutter Demo',
theme: new ThemeData(),
home: new Scaffold(
appBar: new AppBar(
title: new Text("TextField Cursor"),
),
body: new Center(
child: TextField(
textAlign: TextAlign.end,
),
),
),
);
}
}
Flutter doctor -v
[✓] Flutter (Channel master, v0.8.2-pre.24, on Mac OS X 10.13.6 17G65, locale zh-Hant-TW)
• Flutter version 0.8.2-pre.24 at /Users/aniki/git/flutter
• Framework revision 4d9bbc10f2 (26 hours ago), 2018-09-09 03:15:34 -0400
• Engine revision 1770f88548
• Dart version 2.1.0-dev.4.0.flutter-cd9a42239f
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at /Users/aniki/Library/Android/sdk
• Android NDK at /Users/aniki/Library/Android/sdk/ndk-bundle
• Platform android-28, build-tools 27.0.3
• ANDROID_HOME = /Users/aniki/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
• All Android licenses accepted.
[✓] iOS toolchain - develop for iOS devices (Xcode 9.4.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 9.4.1, Build version 9F2000
• ios-deploy 1.9.2
• CocoaPods version 1.5.3
[✓] Android Studio (version 3.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 28.0.1
• Dart plugin version 173.4700
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
[✓] VS Code (version 1.27.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 2.18.0
[✓] Connected devices (2 available)
• Android SDK built for x86 64 • emulator-5554 • android-x64 • Android 9 (API 28) (emulator)
• iPhone X • BE0CF3F0-CCBB-469B-A1FE-BE5530372455 • ios • iOS 11.4 (simulator)