Unverified Commit 501316fd authored by Michael Goderbauer's avatar Michael Goderbauer Committed by GitHub

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

parent dcb47f62
......@@ -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,
),
),
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment