Make Headers be one sementics node in gallery (#17445)

This commit is contained in:
Michael Goderbauer
2018-05-09 16:05:35 -07:00
committed by GitHub
parent dcb47f62ec
commit 501316fd02

View File

@@ -184,15 +184,15 @@ class _Heading extends StatelessWidget {
@override
Widget build(BuildContext context) {
final ThemeData theme = Theme.of(context);
return new Semantics(
header: true,
child: new _OptionsItem(
child: new DefaultTextStyle(
style: theme.textTheme.body1.copyWith(
fontFamily: 'GoogleSans',
color: theme.accentColor,
),
return new _OptionsItem(
child: new DefaultTextStyle(
style: theme.textTheme.body1.copyWith(
fontFamily: 'GoogleSans',
color: theme.accentColor,
),
child: new Semantics(
child: new Text(text),
header: true,
),
),
);