flutter / flutter/flutter

[a11y] Add semantics to the Expansible widget.

Open
#175,907 15 comments 0 reactions 0 assignees View on GitHub
a: accessibility P2 team-accessibility triaged-accessibility
Dominant language
Dart
Stars
179k
Forks
31.1k
PR merge metrics
PR metrics pending

Description

### Use case

After https://github.com/flutter/flutter/pull/174981 lands, we will have `onExpand` and `onCollapse` actions available, which will enable expansion and collapse via a11y.

As discussed here:
https://github.com/flutter/flutter/pull/174981#pullrequestreview-3246044325
https://github.com/flutter/flutter/pull/174981#issuecomment-3313182135

### Proposal

Add `expanded` semantics flag alongside `onExpand` and `onCollapse` semantics actions to the `Expansible` widget.

Contributor guide

Open the contributing guide

Research direction

Start by reading the Expansible widget and the discussion in pull request 174981, including the linked review and issue comment. The work is complete when Expansible exposes an expanded semantics flag and supports the onExpand and onCollapse semantics actions described in the proposal.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart
Domain
accessibility, frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.