Skip to content

[a11y] Use defaultTargetPlatform instead of platform from the theme for Drawer's semantics #177005

@huycozy

Description

@huycozy

Use case

switch (Theme.of(context).platform) {

switch (Theme.of(context).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.

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.f: material designflutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.r: 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