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