diff --git a/examples/flutter_gallery/lib/gallery/home.dart b/examples/flutter_gallery/lib/gallery/home.dart index 03a766e273..ddc4954608 100644 --- a/examples/flutter_gallery/lib/gallery/home.dart +++ b/examples/flutter_gallery/lib/gallery/home.dart @@ -10,14 +10,6 @@ import 'item.dart'; const double _kFlexibleSpaceMaxHeight = 256.0; -List _itemsWithCategory(String category) { - return kAllGalleryItems.where((GalleryItem item) => item.category == category).toList(); -} - -final List _demoItems = _itemsWithCategory('Demos'); -final List _componentItems = _itemsWithCategory('Components'); -final List _styleItems = _itemsWithCategory('Style'); - class _BackgroundLayer { _BackgroundLayer({ int level, double parallax }) : assetName = 'packages/flutter_gallery_assets/appbar/appbar_background_layer$level.png', @@ -138,11 +130,13 @@ class GalleryHomeState extends State with SingleTickerProviderState if (category != null) listItems.add(const Divider()); listItems.add( - new Container( - height: 48.0, - padding: const EdgeInsets.only(left: 16.0), - alignment: FractionalOffset.centerLeft, - child: new Text(galleryItem.category, style: headerStyle) + new MergeSemantics( + child: new Container( + height: 48.0, + padding: const EdgeInsets.only(left: 16.0), + alignment: FractionalOffset.centerLeft, + child: new Text(galleryItem.category, style: headerStyle) + ), ) ); category = galleryItem.category;