Date Picker year selectors announce as 'buttons' to accessibility framework. (#96546)

This commit is contained in:
Darren Austin
2022-01-13 10:14:51 -08:00
committed by GitHub
parent 2df7dca858
commit 046dde3db4
2 changed files with 2 additions and 0 deletions

View File

@@ -1224,6 +1224,7 @@ class _YearPickerState extends State<YearPicker> {
child: Center(
child: Semantics(
selected: isSelected,
button: true,
child: Text(year.toString(), style: itemStyle),
),
),

View File

@@ -840,6 +840,7 @@ void main() {
hasTapAction: true,
isSelected: year == 2016,
isFocusable: true,
isButton: true,
));
}
});