1
0
mirror of https://github.com/flutter/samples.git synced 2026-04-06 11:41:26 +00:00

[Gallery] Fix slow motion setting announcement (#301)

* Enable a11y carousel scrolling

* Fix slow motion announcement on android talkback

* Revert "Enable a11y carousel scrolling"

This reverts commit cc8f233b54.
This commit is contained in:
Pierre-Louis
2020-01-31 17:08:18 +01:00
committed by GitHub
parent b485f10fca
commit 6f0f2fed52

View File

@@ -26,7 +26,9 @@ class SlowMotionSetting extends StatelessWidget {
final textTheme = Theme.of(context).textTheme; final textTheme = Theme.of(context).textTheme;
final options = GalleryOptions.of(context); final options = GalleryOptions.of(context);
return Container( return Semantics(
container: true,
child: Container(
margin: settingItemHeaderMargin, margin: settingItemHeaderMargin,
child: Material( child: Material(
shape: RoundedRectangleBorder(borderRadius: settingItemBorderRadius), shape: RoundedRectangleBorder(borderRadius: settingItemBorderRadius),
@@ -66,6 +68,7 @@ class SlowMotionSetting extends StatelessWidget {
], ],
), ),
), ),
),
); );
} }
} }