Unverified Commit 2eb8caf1 authored by liyuqian's avatar liyuqian Committed by GitHub

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

See https://github.com/flutter/flutter/issues/9257#issuecomment-550503833
parent 12c190f7
......@@ -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;
}
......
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