Repository navigation
ToggleButtons with MaterialTapTargetSize.padded and height constrained to 32 #97302
Description
Activity
- addedframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.p: material_uimaterial_ui package in flutter/packagesmaterial_ui package in flutter/packages
on Jan 26, 2022 I think I've figure out the problem. In #93259 you're padding around each button, but you're not creating a new
SemanticsNodefor the padding. In contrast,ButtonStyleButtonwraps its_InputPaddingwidget in aSemanticswidget so that theSemanticsNodehas the larger size. In the case ofToggleButtons, this should in theory be solvable by wrapping the_InputPaddingwidget in aMergedSemantics. Unfortunately, it looks likeToggleButtonswraps the whole group of individual buttons in_InputPaddingas opposed to each individual button, so addingMergedSemanticsis not trivial.- addeda: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)Accessibility, e.g. VoiceOver or TalkBack. (aka a11y)
on Feb 24, 2022 - addedr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer version
on Apr 1, 2022 - removedr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer version
on Apr 7, 2022 Reopening as the change is being reverted
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 -vand a minimal reproduction of the issue.- locked as resolved and limited conversation to collaborators
on May 11, 2022
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone (PR merged)
This issue corresponds to Google internal issue b/204226713. It does not need additional triage.
The ToggleButtons height has been constrained to 32 but the input area has been padded, per MaterialTapTargetSIze.padded, to 48. The Toggle button has been wrapped in a green Container to highlight the input padding.
Code sample