Skip to content

Focused CupertinoSearchTextField does not hide prefix in higher accessibility text scale modes #168255

Closed

Description

@victorsanni

Native iOS search fields hide the search prefix icon when the search field is focused in higher accessibility text scale modes. This is to give the text content more space.

Normal Scaled for Accessibility
Image Image

CupertinoSearchTextField should respect this as well.

Activity

  1. added
    in triagePresently being triaged by the triage team
    frameworkflutter/packages/flutter repository. See also f: labels.
    a: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)
    c: proposalA detailed proposal for a change to Flutter
    team-designOwned by Design Languages team
    and removed
    in triagePresently being triaged by the triage team
    on May 5, 2025
  2. added
    P2Important issues not at the top of the work list
    triaged-designTriaged by Design Languages team
    on May 7, 2025
  3. srivats22 commented on Jun 12, 2025

    @srivats22
    Contributor

    Hi,

    Can I take this? I was looking at the code and feel I can deliver this... if my understanding is correct, currently the default text size is 20, and if it's increased to be above 20, then we would need to hide the search icon?

  4. victorsanni commented on Jun 12, 2025

    @victorsanni
    ContributorAuthor

    Hi,

    Can I take this? I was looking at the code and feel I can deliver this... if my understanding is correct, currently the default text size is 20, and if it's increased to be above 20, then we would need to hide the search icon?

    Not the text size itself, the text accessibility scale. And I'm not sure it happens immediately above 20. This is the largest scale that still keeps the leading icon:

    Image
  5. srivats22 commented on Jun 12, 2025

    @srivats22
    Contributor

    oh ok, so it varies between different settings?

  6. victorsanni commented on Jun 12, 2025

    @victorsanni
    ContributorAuthor

    oh ok, so it varies between different settings?

    Above the point in the image, the icon is hidden, but below, the icon is displayed.

    It should be doable by hiding CupertinoSearchTextField.prefixIcon if the scaled icon size is above the threshold in the image.

  7. faisalansari0367 commented on Jun 30, 2025

    @faisalansari0367
    Contributor

    It seems that scaled icon size always stay at 20

  8. added
    r: fixedIssue is closed as already fixed in a newer version
    on Jul 1, 2025
  9. github-actions commented on Jul 15, 2025

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

  10. locked as resolved and limited conversation to collaborators on Jul 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)c: proposalA detailed proposal for a change to Flutterframeworkflutter/packages/flutter repository. See also f: labels.p: cupertino_uicupertino_ui package in flutter/packagesr: fixedIssue is closed as already fixed in a newer versionteam-designOwned by Design Languages teamtriaged-designTriaged by Design Languages team

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions