Commit d9cd85e3 authored by Hans Muller's avatar Hans Muller Committed by GitHub

Remove the pesto gallery demo (#9341)

parent 2a545243
...@@ -49,17 +49,11 @@ class GalleryItem extends StatelessWidget { ...@@ -49,17 +49,11 @@ class GalleryItem extends StatelessWidget {
} }
} }
// When editing this list, make sure you keep it in sync with List<GalleryItem> _buildGalleryItems() {
// the list in ../../test_driver/transitions_perf_test.dart // When editing this list, make sure you keep it in sync with
final List<GalleryItem> kAllGalleryItems = <GalleryItem>[ // the list in ../../test_driver/transitions_perf_test.dart
final List<GalleryItem> galleryItems = <GalleryItem>[
// Demos // Demos
new GalleryItem(
title: 'Pesto',
subtitle: 'Simple recipe browser',
category: 'Demos',
routeName: PestoDemo.routeName,
buildRoute: (BuildContext context) => new PestoDemo(),
),
new GalleryItem( new GalleryItem(
title: 'Shrine', title: 'Shrine',
subtitle:'Basic shopping app', subtitle:'Basic shopping app',
...@@ -322,4 +316,24 @@ final List<GalleryItem> kAllGalleryItems = <GalleryItem>[ ...@@ -322,4 +316,24 @@ final List<GalleryItem> kAllGalleryItems = <GalleryItem>[
routeName: TypographyDemo.routeName, routeName: TypographyDemo.routeName,
buildRoute: (BuildContext context) => new TypographyDemo(), buildRoute: (BuildContext context) => new TypographyDemo(),
) )
]; ];
// Keep Pesto around for its regression test value. It is not included
// in (release builds) the performance tests.
assert(() {
galleryItems.insert(0,
new GalleryItem(
title: 'Pesto',
subtitle: 'Simple recipe browser',
category: 'Demos',
routeName: PestoDemo.routeName,
buildRoute: (BuildContext context) => new PestoDemo(),
),
);
return true;
});
return galleryItems;
}
final List<GalleryItem> kAllGalleryItems = _buildGalleryItems();
...@@ -33,7 +33,6 @@ class Demo { ...@@ -33,7 +33,6 @@ class Demo {
// kAllGalleryItems.map((GalleryItem item) => item.title).toList(); // kAllGalleryItems.map((GalleryItem item) => item.title).toList();
const List<Demo> demos = const <Demo>[ const List<Demo> demos = const <Demo>[
// Demos // Demos
const Demo('Pesto', profiled: true),
const Demo('Shrine', profiled: true), const Demo('Shrine', profiled: true),
const Demo('Contact profile', profiled: true), const Demo('Contact profile', profiled: true),
const Demo('Animation', profiled: true), const Demo('Animation', profiled: 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