Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Long-press-drag in text fields only expands correctly in one direction, and the originally selected word should stay highlighted during the expansion #32339

Closed
@LongCatIsLooong

Description

@LongCatIsLooong

Steps to Reproduce

Android

  1. Create a TextField
  2. Enter "abc def ghi"
  3. Long press on "e" to highlight "def"
  4. Move the touch point to "h", "def gh" is selected as expected
  5. Move the touch point to "a", the space between "abc" and "def" is selected.

iOS

Double tap drag has not yet been implemented (tracked in #23973), but RenderEditable.selectPositionAt seems to work only in one direction.

Expected:

  1. On both iOS and Android, move the touch point to "a", "abc def" should be selected. Also the initially selected word "def" in step 3 should always stay selected after step 3, regardless of the touch point position .

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: fidelityMatching the OEM platforms bettera: text inputEntering text in a text field or keyboard related problemsf: cupertinoflutter/packages/flutter/cupertino repositoryf: material designflutter/packages/flutter/material repository.found in release: 3.3Found to occur in 3.3found in release: 3.5Found to occur in 3.5frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onr: fixedIssue is closed as already fixed in a newer version

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions