Re-enable Pesto in profile/release mode (#44299)

See https://github.com/flutter/flutter/issues/9257#issuecomment-550503833
This commit is contained in:
liyuqian
2019-11-07 14:05:56 -08:00
committed by GitHub
parent 12c190f746
commit 2eb8caf13c

View File

@@ -131,6 +131,14 @@ List<GalleryDemo> _buildGalleryDemos() {
routeName: TransformationsDemo.routeName,
buildRoute: (BuildContext context) => const TransformationsDemo(),
),
GalleryDemo(
title: 'Pesto',
subtitle: 'Simple recipe browser',
icon: Icons.adjust,
category: _kDemos,
routeName: PestoDemo.routeName,
buildRoute: (BuildContext context) => const PestoDemo(),
),
// Style
GalleryDemo(
@@ -555,23 +563,6 @@ List<GalleryDemo> _buildGalleryDemos() {
buildRoute: (BuildContext context) => const VideoDemo(),
),
];
// Keep Pesto around for its regression test value. It is not included
// in (release builds) the performance tests.
assert(() {
galleryDemos.insert(0,
GalleryDemo(
title: 'Pesto',
subtitle: 'Simple recipe browser',
icon: Icons.adjust,
category: _kDemos,
routeName: PestoDemo.routeName,
buildRoute: (BuildContext context) => const PestoDemo(),
),
);
return true;
}());
return galleryDemos;
}