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

Remove the pesto gallery demo (#9341)

parent 2a545243
...@@ -49,277 +49,291 @@ class GalleryItem extends StatelessWidget { ...@@ -49,277 +49,291 @@ 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
// Demos final List<GalleryItem> galleryItems = <GalleryItem>[
new GalleryItem( // Demos
title: 'Pesto', new GalleryItem(
subtitle: 'Simple recipe browser', title: 'Shrine',
category: 'Demos', subtitle:'Basic shopping app',
routeName: PestoDemo.routeName, category: 'Demos',
buildRoute: (BuildContext context) => new PestoDemo(), routeName: ShrineDemo.routeName,
), buildRoute: (BuildContext context) => new ShrineDemo(),
new GalleryItem( ),
title: 'Shrine', new GalleryItem(
subtitle:'Basic shopping app', title: 'Contact profile',
category: 'Demos', subtitle: 'Address book entry with a flexible appbar',
routeName: ShrineDemo.routeName, category: 'Demos',
buildRoute: (BuildContext context) => new ShrineDemo(), routeName: ContactsDemo.routeName,
), buildRoute: (BuildContext context) => new ContactsDemo(),
new GalleryItem( ),
title: 'Contact profile', new GalleryItem(
subtitle: 'Address book entry with a flexible appbar', title: 'Animation',
category: 'Demos', subtitle: 'Section organizer',
routeName: ContactsDemo.routeName, category: 'Demos',
buildRoute: (BuildContext context) => new ContactsDemo(), routeName: AnimationDemo.routeName,
), buildRoute: (BuildContext context) => new AnimationDemo(),
new GalleryItem( ),
title: 'Animation', // Material Components
subtitle: 'Section organizer', new GalleryItem(
category: 'Demos', title: 'Bottom navigation',
routeName: AnimationDemo.routeName, subtitle: 'Bottom navigation with cross-fading views',
buildRoute: (BuildContext context) => new AnimationDemo(), category: 'Material Components',
), routeName: BottomNavigationDemo.routeName,
// Material Components buildRoute: (BuildContext context) => new BottomNavigationDemo(),
new GalleryItem( ),
title: 'Bottom navigation', new GalleryItem(
subtitle: 'Bottom navigation with cross-fading views', title: 'Buttons',
category: 'Material Components', subtitle: 'All kinds: flat, raised, dropdown, icon, etc',
routeName: BottomNavigationDemo.routeName, category: 'Material Components',
buildRoute: (BuildContext context) => new BottomNavigationDemo(), routeName: ButtonsDemo.routeName,
), buildRoute: (BuildContext context) => new ButtonsDemo(),
new GalleryItem( ),
title: 'Buttons', new GalleryItem(
subtitle: 'All kinds: flat, raised, dropdown, icon, etc', title: 'Cards',
category: 'Material Components', subtitle: 'Material with rounded corners and a drop shadow',
routeName: ButtonsDemo.routeName, category: 'Material Components',
buildRoute: (BuildContext context) => new ButtonsDemo(), routeName: CardsDemo.routeName,
), buildRoute: (BuildContext context) => new CardsDemo(),
new GalleryItem( ),
title: 'Cards', new GalleryItem(
subtitle: 'Material with rounded corners and a drop shadow', title: 'Chips',
category: 'Material Components', subtitle: 'Label with an optional delete button and avatar',
routeName: CardsDemo.routeName, category: 'Material Components',
buildRoute: (BuildContext context) => new CardsDemo(), routeName: ChipDemo.routeName,
), buildRoute: (BuildContext context) => new ChipDemo(),
new GalleryItem( ),
title: 'Chips', new GalleryItem(
subtitle: 'Label with an optional delete button and avatar', title: 'Date and time pickers',
category: 'Material Components', subtitle: 'Date and time selection widgets',
routeName: ChipDemo.routeName, category: 'Material Components',
buildRoute: (BuildContext context) => new ChipDemo(), routeName: DateAndTimePickerDemo.routeName,
), buildRoute: (BuildContext context) => new DateAndTimePickerDemo(),
new GalleryItem( ),
title: 'Date and time pickers', new GalleryItem(
subtitle: 'Date and time selection widgets', title: 'Dialog',
category: 'Material Components', subtitle: 'All kinds: simple, alert, fullscreen, etc',
routeName: DateAndTimePickerDemo.routeName, category: 'Material Components',
buildRoute: (BuildContext context) => new DateAndTimePickerDemo(), routeName: DialogDemo.routeName,
), buildRoute: (BuildContext context) => new DialogDemo(),
new GalleryItem( ),
title: 'Dialog', new GalleryItem(
subtitle: 'All kinds: simple, alert, fullscreen, etc', title: 'Drawer',
category: 'Material Components', subtitle: 'Navigation drawer with a standard header',
routeName: DialogDemo.routeName, category: 'Material Components',
buildRoute: (BuildContext context) => new DialogDemo(), routeName: DrawerDemo.routeName,
), buildRoute: (BuildContext context) => new DrawerDemo(),
new GalleryItem( ),
title: 'Drawer', new GalleryItem(
subtitle: 'Navigation drawer with a standard header', title: 'Expand/collapse list control',
category: 'Material Components', subtitle: 'List with one level of sublists',
routeName: DrawerDemo.routeName, category: 'Material Components',
buildRoute: (BuildContext context) => new DrawerDemo(), routeName: TwoLevelListDemo.routeName,
), buildRoute: (BuildContext context) => new TwoLevelListDemo(),
new GalleryItem( ),
title: 'Expand/collapse list control', new GalleryItem(
subtitle: 'List with one level of sublists', title: 'Expansion panels',
category: 'Material Components', subtitle: 'List of expanding panels',
routeName: TwoLevelListDemo.routeName, category: 'Material Components',
buildRoute: (BuildContext context) => new TwoLevelListDemo(), routeName: ExpasionPanelsDemo.routeName,
), buildRoute: (BuildContext context) => new ExpasionPanelsDemo(),
new GalleryItem( ),
title: 'Expansion panels', new GalleryItem(
subtitle: 'List of expanding panels', title: 'Floating action button',
category: 'Material Components', subtitle: 'Action buttons with transitions',
routeName: ExpasionPanelsDemo.routeName, category: 'Material Components',
buildRoute: (BuildContext context) => new ExpasionPanelsDemo(), routeName: TabsFabDemo.routeName,
), buildRoute: (BuildContext context) => new TabsFabDemo(),
new GalleryItem( ),
title: 'Floating action button', new GalleryItem(
subtitle: 'Action buttons with transitions', title: 'Grid',
category: 'Material Components', subtitle: 'Row and column layout',
routeName: TabsFabDemo.routeName, category: 'Material Components',
buildRoute: (BuildContext context) => new TabsFabDemo(), routeName: GridListDemo.routeName,
), buildRoute: (BuildContext context) => new GridListDemo(),
new GalleryItem( ),
title: 'Grid', new GalleryItem(
subtitle: 'Row and column layout', title: 'Icons',
category: 'Material Components', subtitle: 'Enabled and disabled icons with varying opacity',
routeName: GridListDemo.routeName, category: 'Material Components',
buildRoute: (BuildContext context) => new GridListDemo(), routeName: IconsDemo.routeName,
), buildRoute: (BuildContext context) => new IconsDemo(),
new GalleryItem( ),
title: 'Icons', new GalleryItem(
subtitle: 'Enabled and disabled icons with varying opacity', title: 'Leave-behind list items',
category: 'Material Components', subtitle: 'List items with hidden actions',
routeName: IconsDemo.routeName, category: 'Material Components',
buildRoute: (BuildContext context) => new IconsDemo(), routeName: LeaveBehindDemo.routeName,
), buildRoute: (BuildContext context) => new LeaveBehindDemo(),
new GalleryItem( ),
title: 'Leave-behind list items', new GalleryItem(
subtitle: 'List items with hidden actions', title: 'List',
category: 'Material Components', subtitle: 'Layout variations for scrollable lists',
routeName: LeaveBehindDemo.routeName, category: 'Material Components',
buildRoute: (BuildContext context) => new LeaveBehindDemo(), routeName: ListDemo.routeName,
), buildRoute: (BuildContext context) => new ListDemo(),
new GalleryItem( ),
title: 'List', new GalleryItem(
subtitle: 'Layout variations for scrollable lists', title: 'Menus',
category: 'Material Components', subtitle: 'Menu buttons and simple menus',
routeName: ListDemo.routeName, category: 'Material Components',
buildRoute: (BuildContext context) => new ListDemo(), routeName: MenuDemo.routeName,
), buildRoute: (BuildContext context) => new MenuDemo(),
new GalleryItem( ),
title: 'Menus', new GalleryItem(
subtitle: 'Menu buttons and simple menus', title: 'Modal bottom sheet',
category: 'Material Components', subtitle: 'Modal sheet that slides up from the bottom',
routeName: MenuDemo.routeName, category: 'Material Components',
buildRoute: (BuildContext context) => new MenuDemo(), routeName: ModalBottomSheetDemo.routeName,
), buildRoute: (BuildContext context) => new ModalBottomSheetDemo(),
new GalleryItem( ),
title: 'Modal bottom sheet', new GalleryItem(
subtitle: 'Modal sheet that slides up from the bottom', title: 'Page selector',
category: 'Material Components', subtitle: 'PageView with indicator',
routeName: ModalBottomSheetDemo.routeName, category: 'Material Components',
buildRoute: (BuildContext context) => new ModalBottomSheetDemo(), routeName: PageSelectorDemo.routeName,
), buildRoute: (BuildContext context) => new PageSelectorDemo(),
new GalleryItem( ),
title: 'Page selector', new GalleryItem(
subtitle: 'PageView with indicator', title: 'Persistent bottom sheet',
category: 'Material Components', subtitle: 'Sheet that slides up from the bottom',
routeName: PageSelectorDemo.routeName, category: 'Material Components',
buildRoute: (BuildContext context) => new PageSelectorDemo(), routeName: PersistentBottomSheetDemo.routeName,
), buildRoute: (BuildContext context) => new PersistentBottomSheetDemo(),
new GalleryItem( ),
title: 'Persistent bottom sheet', new GalleryItem(
subtitle: 'Sheet that slides up from the bottom', title: 'Progress indicators',
category: 'Material Components', subtitle: 'All kinds: linear, circular, indeterminate, etc',
routeName: PersistentBottomSheetDemo.routeName, category: 'Material Components',
buildRoute: (BuildContext context) => new PersistentBottomSheetDemo(), routeName: ProgressIndicatorDemo.routeName,
), buildRoute: (BuildContext context) => new ProgressIndicatorDemo(),
new GalleryItem( ),
title: 'Progress indicators', new GalleryItem(
subtitle: 'All kinds: linear, circular, indeterminate, etc', title: 'Pull to refresh',
category: 'Material Components', subtitle: 'Refresh indicators',
routeName: ProgressIndicatorDemo.routeName, category: 'Material Components',
buildRoute: (BuildContext context) => new ProgressIndicatorDemo(), routeName: OverscrollDemo.routeName,
), buildRoute: (BuildContext context) => new OverscrollDemo(),
new GalleryItem( ),
title: 'Pull to refresh', new GalleryItem(
subtitle: 'Refresh indicators', title: 'Scrollable tabs',
category: 'Material Components', subtitle: 'Tab bar that scrolls',
routeName: OverscrollDemo.routeName, category: 'Material Components',
buildRoute: (BuildContext context) => new OverscrollDemo(), routeName: ScrollableTabsDemo.routeName,
), buildRoute: (BuildContext context) => new ScrollableTabsDemo(),
new GalleryItem( ),
title: 'Scrollable tabs', new GalleryItem(
subtitle: 'Tab bar that scrolls', title: 'Selection controls',
category: 'Material Components', subtitle: 'Checkboxes, radio buttons, and switches',
routeName: ScrollableTabsDemo.routeName, category: 'Material Components',
buildRoute: (BuildContext context) => new ScrollableTabsDemo(), routeName: SelectionControlsDemo.routeName,
), buildRoute: (BuildContext context) => new SelectionControlsDemo(),
new GalleryItem( ),
title: 'Selection controls', new GalleryItem(
subtitle: 'Checkboxes, radio buttons, and switches', title: 'Sliders',
category: 'Material Components', subtitle: 'Widgets that select a value by dragging the slider thumb',
routeName: SelectionControlsDemo.routeName, category: 'Material Components',
buildRoute: (BuildContext context) => new SelectionControlsDemo(), routeName: SliderDemo.routeName,
), buildRoute: (BuildContext context) => new SliderDemo(),
new GalleryItem( ),
title: 'Sliders', new GalleryItem(
subtitle: 'Widgets that select a value by dragging the slider thumb', title: 'Snackbar',
category: 'Material Components', subtitle: 'Temporary message that appears at the bottom',
routeName: SliderDemo.routeName, category: 'Material Components',
buildRoute: (BuildContext context) => new SliderDemo(), routeName: SnackBarDemo.routeName,
), buildRoute: (BuildContext context) => new SnackBarDemo(),
new GalleryItem( ),
title: 'Snackbar', new GalleryItem(
subtitle: 'Temporary message that appears at the bottom', title: 'Tabs',
category: 'Material Components', subtitle: 'Tabs with independently scrollable views',
routeName: SnackBarDemo.routeName, category: 'Material Components',
buildRoute: (BuildContext context) => new SnackBarDemo(), routeName: TabsDemo.routeName,
), buildRoute: (BuildContext context) => new TabsDemo(),
new GalleryItem( ),
title: 'Tabs', new GalleryItem(
subtitle: 'Tabs with independently scrollable views', title: 'Text fields',
category: 'Material Components', subtitle: 'Single line of editable text and numbers',
routeName: TabsDemo.routeName, category: 'Material Components',
buildRoute: (BuildContext context) => new TabsDemo(), routeName: TextFormFieldDemo.routeName,
), buildRoute: (BuildContext context) => new TextFormFieldDemo(),
new GalleryItem( ),
title: 'Text fields', new GalleryItem(
subtitle: 'Single line of editable text and numbers', title: 'Tooltips',
category: 'Material Components', subtitle: 'Short message displayed after a long-press',
routeName: TextFormFieldDemo.routeName, category: 'Material Components',
buildRoute: (BuildContext context) => new TextFormFieldDemo(), routeName: TooltipDemo.routeName,
), buildRoute: (BuildContext context) => new TooltipDemo(),
new GalleryItem( ),
title: 'Tooltips', // Cupertino Components
subtitle: 'Short message displayed after a long-press', new GalleryItem(
category: 'Material Components', title: 'Activity Indicator',
routeName: TooltipDemo.routeName, subtitle: 'Cupertino styled activity indicator',
buildRoute: (BuildContext context) => new TooltipDemo(), category: 'Cupertino Components',
), routeName: CupertinoProgressIndicatorDemo.routeName,
// Cupertino Components buildRoute: (BuildContext context) => new CupertinoProgressIndicatorDemo(),
new GalleryItem( ),
title: 'Activity Indicator', new GalleryItem(
subtitle: 'Cupertino styled activity indicator', title: 'Buttons',
category: 'Cupertino Components', subtitle: 'Cupertino styled buttons',
routeName: CupertinoProgressIndicatorDemo.routeName, category: 'Cupertino Components',
buildRoute: (BuildContext context) => new CupertinoProgressIndicatorDemo(), routeName: CupertinoButtonsDemo.routeName,
), buildRoute: (BuildContext context) => new CupertinoButtonsDemo(),
new GalleryItem( ),
title: 'Buttons', new GalleryItem(
subtitle: 'Cupertino styled buttons', title: 'Dialogs',
category: 'Cupertino Components', subtitle: 'Cupertino styled dialogs',
routeName: CupertinoButtonsDemo.routeName, category: 'Cupertino Components',
buildRoute: (BuildContext context) => new CupertinoButtonsDemo(), routeName: CupertinoDialogDemo.routeName,
), buildRoute: (BuildContext context) => new CupertinoDialogDemo(),
new GalleryItem( ),
title: 'Dialogs', new GalleryItem(
subtitle: 'Cupertino styled dialogs', title: 'Sliders',
category: 'Cupertino Components', subtitle: 'Cupertino styled sliders',
routeName: CupertinoDialogDemo.routeName, category: 'Cupertino Components',
buildRoute: (BuildContext context) => new CupertinoDialogDemo(), routeName: CupertinoSliderDemo.routeName,
), buildRoute: (BuildContext context) => new CupertinoSliderDemo(),
new GalleryItem( ),
title: 'Sliders', new GalleryItem(
subtitle: 'Cupertino styled sliders', title: 'Switches',
category: 'Cupertino Components', subtitle: 'Cupertino styled switches',
routeName: CupertinoSliderDemo.routeName, category: 'Cupertino Components',
buildRoute: (BuildContext context) => new CupertinoSliderDemo(), routeName: CupertinoSwitchDemo.routeName,
), buildRoute: (BuildContext context) => new CupertinoSwitchDemo(),
new GalleryItem( ),
title: 'Switches', // Styles
subtitle: 'Cupertino styled switches', new GalleryItem(
category: 'Cupertino Components', title: 'Colors',
routeName: CupertinoSwitchDemo.routeName, subtitle: 'All of the predefined colors',
buildRoute: (BuildContext context) => new CupertinoSwitchDemo(), category: 'Style',
), routeName: ColorsDemo.routeName,
// Styles buildRoute: (BuildContext context) => new ColorsDemo(),
new GalleryItem( ),
title: 'Colors', new GalleryItem(
subtitle: 'All of the predefined colors', title: 'Typography',
category: 'Style', subtitle: 'All of the predefined text styles',
routeName: ColorsDemo.routeName, category: 'Style',
buildRoute: (BuildContext context) => new ColorsDemo(), routeName: TypographyDemo.routeName,
), buildRoute: (BuildContext context) => new TypographyDemo(),
new GalleryItem( )
title: 'Typography', ];
subtitle: 'All of the predefined text styles',
category: 'Style', // Keep Pesto around for its regression test value. It is not included
routeName: TypographyDemo.routeName, // in (release builds) the performance tests.
buildRoute: (BuildContext context) => new TypographyDemo(), 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