Skip to content

Add factory constructors to FocusOrder #189991

Closed

Description

@FMorschel

Use case

When working with FocusTraversalOrder, we can't use dot shorthands to choose between Lexical and Numeric orders.

Proposal

Simply add const factory lexical(String order) = LexicalFocusOrder; and similar for the numeric version.

I'm willing to write the PR for this.

Activity

  1. added
    frameworkflutter/packages/flutter repository. See also f: labels.
    c: proposalA detailed proposal for a change to Flutter
    f: focusFocus traversal, gaining or losing focus
    on Jul 26, 2026
  2. mbcorona commented on Jul 26, 2026

    @mbcorona
    Member

    Thanks for the clear proposal, and for offering to write the PR.

    Routing this to the framework team for design review and prioritization. Since you're willing to contribute, feel free to open a PR. However, please wait for the team's feedback on the API shape before investing significant effort, as the exact constructor names/signatures may warrant discussion.

  3. added
    P2Important issues not at the top of the work list
    on Jul 28, 2026
  4. github-actions commented on Aug 19, 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.

  5. locked as resolved and limited conversation to collaborators on Aug 19, 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 listc: proposalA detailed proposal for a change to Flutterf: focusFocus traversal, gaining or losing focusframeworkflutter/packages/flutter repository. See also f: labels.team-frameworkOwned by Framework teamtriaged-frameworkTriaged by Framework team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions