Skip to content

[a11y] Use defaultTargetPlatform instead of platform from the theme for AppBar title semantics #177000

Closed

Description

@huycozy

Use case

namesRoute: switch (theme.platform) {

In case users explicitly configure a specific platform (let's give it as Android for eg), but run on another platform (let's give it as iOS for eg), accessibility might work incorrectly.

Proposal

Use defaultTargetPlatform instead of using platform from the theme.

Activity

  1. added
    frameworkflutter/packages/flutter repository. See also f: labels.
    p: material_uimaterial_ui package in flutter/packages
    a: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)
    c: proposalA detailed proposal for a change to Flutter
    c: tech-debtTechnical debt, code quality, testing, etc.
    team-accessibilityOwned by Framework Accessibility team (i.e. responsible for accessibility code in flutter/flutter)
    on Oct 14, 2025
  2. self-assigned this
    on Oct 14, 2025
  3. added
    r: fixedIssue is closed as already fixed in a newer version
    on Oct 28, 2025
  4. github-actions commented on Nov 11, 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.

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

Metadata

Metadata

Assignees

Labels

a: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)c: proposalA detailed proposal for a change to Flutterc: tech-debtTechnical debt, code quality, testing, etc.frameworkflutter/packages/flutter repository. See also f: labels.p: material_uimaterial_ui package in flutter/packagesr: fixedIssue is closed as already fixed in a newer versionteam-accessibilityOwned by Framework Accessibility team (i.e. responsible for accessibility code in flutter/flutter)

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions