Skip to content

It's not possible to move the cursor in a text field by dragging #20693

Description

@vlidholt

Standard behavior (at least on iOS) is to move the cursor when tapping, holding down your finger and dragging it. This makes it possible to fine-tune the position of the cursor in the text field. When doing this in Flutter, instead the text field starts to select the text.

[✓] Flutter (Channel master, v0.5.9-pre.60, on Mac OS X 10.13.5 17F77, locale en-US)
    • Flutter version 0.5.9-pre.60 at /Users/vik/Projects/flutter
    • Framework revision 26ba937846 (3 hours ago), 2018-08-16 13:59:27 +0200
    • Engine revision e3687f70c7
    • Dart version 2.1.0-dev.0.0.flutter-be6309690f

[!] Android toolchain - develop for Android devices (Android SDK 27.0.3)
    • Android SDK at /Users/vik/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-27, build-tools 27.0.3
    • 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-915-b08)
    ✗ Android license status unknown.

[✓] 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.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    • Dart plugin version 171.4424
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)

[✓] Android Studio (version 2.3)
    • Android Studio at /Applications/Android Studio - old.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_112-release-b06)

[✓] IntelliJ IDEA Community Edition (version 2017.2.5)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 21.2.2
    • Dart plugin version 172.4343.25

[✓] Connected devices (1 available)
    • iPhone SE • 8D312AD9-51E0-4381-A2AF-FC2E997E5EBD • ios • iOS 11.4 (simulator)

! Doctor found issues in 1 category.

Activity

  1. zoechi commented on Aug 21, 2018

    @zoechi
    Contributor

    Is this a dup of #17030 ?

  2. vlidholt commented on Aug 22, 2018

    @vlidholt
    ContributorAuthor

    @zoechi It's not a duplicate. That issue covers moving the cursor by force pressing on the keyboard, this is about tapping and dragging the cursor within the text.

    At present, it's very hard to select an exact insert point for the text input. Flutter overall is great, but the text fields really need to be fixed, they do not at all feel native and are very cumbersome/buggy to use. This is still holding back a bunch of features in my Newsvoice app.

  3. zoechi commented on Aug 22, 2018

    @zoechi
    Contributor

    I see. Thanks for the update and sorry for the noise.

  4. added
    a: text inputEntering text in a text field or keyboard related problems
    frameworkflutter/packages/flutter repository. See also f: labels.
    a: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)
    on Aug 22, 2018
  5. added
    platform-iosiOS applications specifically
    p: material_uimaterial_ui package in flutter/packages
    p: cupertino_uicupertino_ui package in flutter/packages
    on Aug 31, 2018
  6. added
    a: fidelityMatching the OEM platforms better
    f: gesturesflutter/packages/flutter/gestures repository.
    on Nov 26, 2018
  7. added this to the milestone on Nov 26, 2018
  8. self-assigned this
    on Dec 20, 2018
  9. modified the milestones: , February 2019 on Dec 20, 2018
  10. removed
    a: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)
    on Jan 5, 2019
  11. justinmc commented on Jan 10, 2019

    @justinmc
    Contributor

    We might want to implement the magnifying glass effect too if we want to be really accurate.

    img_2214

  12. xster commented on Jan 10, 2019

    @xster
    Member

    It's #9507

  13. xster commented on Jan 10, 2019

    @xster
    Member

    Extracting Android parts to #26394

  14. xster commented on Feb 6, 2019

    @xster
    Member

    #26001 fixes this but it's pending #27534 for a cleaner text API first. Updating the milestone

  15. modified the milestones: February 2019, March 2019 on Feb 6, 2019
  16. github-actions commented on Aug 31, 2021

    @github-actions

    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 flutter doctor -v and a minimal reproduction of the issue.

  17. locked as resolved and limited conversation to collaborators on Aug 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

a: fidelityMatching the OEM platforms bettera: text inputEntering text in a text field or keyboard related problemsf: gesturesflutter/packages/flutter/gestures repository.frameworkflutter/packages/flutter repository. See also f: labels.p: cupertino_uicupertino_ui package in flutter/packagesp: material_uimaterial_ui package in flutter/packagesplatform-iosiOS applications specificallywaiting for PR to land (fixed)A fix is in flight

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions