Skip to content

Text selection handles face wrong direction in RTL app with LTR text #187799

Closed

Description

@muhammadkamel

Steps to reproduce

  1. Run a Flutter app with ambient TextDirection.rtl (e.g. Arabic locale).
  2. Focus a single-line text field and enter LTR text (e.g. English).
  3. Select the text to show the selection handles.

Expected results

Selection handles should align with the selected text and point toward the selection on both ends.

Actual results

Selection handles render with the wrong orientation/position relative to the selected text when the ambient directionality is RTL and the selected text is LTR.

Screenshot showing misaligned selection handles in an RTL app with LTR text

Environment

  • Platform: Android (observed on device)
  • App locale/direction: RTL (Arabic UI)
  • Selected text direction: LTR (English)

Additional context

A fix is proposed in #179928.

Activity

  1. added
    frameworkflutter/packages/flutter repository. See also f: labels.
    f: selectionSelectableRegion, SelectionArea, SelectionContainer, Selectable, and related APIs
    on Jun 10, 2026
  2. moved this from Incoming Issues to In progress in SelectableRegion Improvementson Jun 10, 2026
  3. mbcorona commented on Jun 10, 2026

    @mbcorona
    Member

    Thanks for the clear report and the screenshot. Routing to team-text-input with f: selection.
    NMoted PR: #179928

  4. added
    P2Important issues not at the top of the work list
    on Jun 11, 2026
  5. added a commit that references this issue on Jul 31, 2026
    3ca3853
  6. github-actions commented on Aug 14, 2026

    @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.

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

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work listf: selectionSelectableRegion, SelectionArea, SelectionContainer, Selectable, and related APIsframeworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onteam-text-inputOwned by Text Input teamtriaged-text-inputTriaged by Text Input team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions