diff --git a/examples/flutter_gallery/lib/gallery/options.dart b/examples/flutter_gallery/lib/gallery/options.dart index 488e9f6663..a75fa0e913 100644 --- a/examples/flutter_gallery/lib/gallery/options.dart +++ b/examples/flutter_gallery/lib/gallery/options.dart @@ -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, ), ), );