-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Description
Steps to Reproduce
Create a TextField like this:
var text = "hello";
var controller = new TextEditingController(text: text)
..selection = new TextSelection(baseOffset: 0, extentOffset: text.length);
new TextField(
autofocus: true,
textAlign: TextAlign.end,
controller: controller);
This renders a block of text selection at the beginning instead over the characters:

Same for TextAlign.right.
[✓] Flutter (Channel beta, v0.4.4, on Linux, locale en_US.UTF-8)
• Flutter version 0.4.4 at /home/crazywater/flutter
• Framework revision f9bb428 (2 weeks ago), 2018-05-11 21:44:54 -0700
• Engine revision 06afdfe
• Dart version 2.0.0-dev.54.0.flutter-46ab040e58
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at /home/crazywater/Android/Sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-27, build-tools 27.0.3
• Java binary at: /home/crazywater/android-studio-3/jre/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)
• All Android licenses accepted.
[✓] Android Studio (version 2.3)
• Android Studio at /home/crazywater/android-studio
✗ 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_112-release-b06)
[✓] Android Studio (version 3.0)
• Android Studio at /home/crazywater/android-studio-3
✗ 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_152-release-915-b01)
[✓] IntelliJ IDEA Community Edition (version 2017.3)
• IntelliJ at /home/crazywater/Apps/idea-IC-173.4548.28
• Flutter plugin version 22.2.2
• Dart plugin version 173.4548.30
[✓] IntelliJ IDEA Community Edition (version 2017.2)
• IntelliJ at /home/crazywater/Downloads/idea-IC-172.3544.35
• Flutter plugin version 21.2.2
• Dart plugin version 172.4343.25
[!] VS Code (version 1.23.0)
• VS Code at /usr/share/code
• Dart Code extension not installed; install from
https://marketplace.visualstudio.com/items?itemName=Dart-Code.dart-code
[✓] Connected devices (1 available)
• Nexus 5X • 02662d754ebcc6a3 • android-arm64 • Android 8.1.0 (API 27)
! Doctor found issues in 1 category.