-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Description
flutter cursor isn't placed correctly when tapping TextField as show in the following gif:
Steps to Reproduce
create a simple app containing a Multiline TextField widget with TextAlign center or right and type several lines.
I created with a simple main.dart file as follows:
import 'package:flutter/material.dart';
void main() {
runApp(MaterialApp(
home: new MyApp(),
));
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: Center(child: Text('input test'))),
body: Center(
child: TextField(
textAlign: TextAlign.right,
minLines: 3,
keyboardType: TextInputType.multiline,
maxLines: null,
),
),
);
}
}
flutter doctor result
[✓] Flutter (Channel stable, v1.12.13+hotfix.8, on Linux, locale en_US.UTF-8)
• Flutter version 1.12.13+hotfix.8 at /home/alideb/flutter
• Framework revision 0b8abb4 (6 weeks ago), 2020-02-11 11:44:36 -0800
• Engine revision e1e6ced
• Dart version 2.7.0
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at /home/alideb/Android/Sdk
• Android NDK location not configured (optional; useful for native profiling
support)
• Platform android-29, build-tools 29.0.2
• ANDROID_HOME = /home/alideb/Android/Sdk
• Java binary at: /home/alideb/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build
1.8.0_212-release-1586-b4-5784211)
• All Android licenses accepted.
[✓] Android Studio (version 3.6)
• Android Studio at /home/alideb/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)
• No issues found!
