Unverified Commit 33fea5c1 authored by xster's avatar xster Committed by GitHub

Remove the 'demo' wording from gallery (#15640)

parent d8f36071
...@@ -55,28 +55,28 @@ List<GalleryItem> _buildGalleryItems() { ...@@ -55,28 +55,28 @@ List<GalleryItem> _buildGalleryItems() {
new GalleryItem( new GalleryItem(
title: 'Shrine', title: 'Shrine',
subtitle: 'Basic shopping app', subtitle: 'Basic shopping app',
category: 'Demos', category: 'Vignettes',
routeName: ShrineDemo.routeName, routeName: ShrineDemo.routeName,
buildRoute: (BuildContext context) => new ShrineDemo(), buildRoute: (BuildContext context) => new ShrineDemo(),
), ),
new GalleryItem( new GalleryItem(
title: 'Contact profile', title: 'Contact profile',
subtitle: 'Address book entry with a flexible appbar', subtitle: 'Address book entry with a flexible appbar',
category: 'Demos', category: 'Vignettes',
routeName: ContactsDemo.routeName, routeName: ContactsDemo.routeName,
buildRoute: (BuildContext context) => new ContactsDemo(), buildRoute: (BuildContext context) => new ContactsDemo(),
), ),
new GalleryItem( new GalleryItem(
title: 'Animation', title: 'Animation',
subtitle: 'Section organizer', subtitle: 'Section organizer',
category: 'Demos', category: 'Vignettes',
routeName: AnimationDemo.routeName, routeName: AnimationDemo.routeName,
buildRoute: (BuildContext context) => const AnimationDemo(), buildRoute: (BuildContext context) => const AnimationDemo(),
), ),
new GalleryItem( new GalleryItem(
title: 'Video', title: 'Video',
subtitle: 'Video playback', subtitle: 'Video playback',
category: 'Demos', category: 'Vignettes',
routeName: VideoDemo.routeName, routeName: VideoDemo.routeName,
buildRoute: (BuildContext context) => const VideoDemo(), buildRoute: (BuildContext context) => const VideoDemo(),
), ),
...@@ -373,7 +373,7 @@ List<GalleryItem> _buildGalleryItems() { ...@@ -373,7 +373,7 @@ List<GalleryItem> _buildGalleryItems() {
new GalleryItem( new GalleryItem(
title: 'Pesto', title: 'Pesto',
subtitle: 'Simple recipe browser', subtitle: 'Simple recipe browser',
category: 'Demos', category: 'Vignettes',
routeName: PestoDemo.routeName, routeName: PestoDemo.routeName,
buildRoute: (BuildContext context) => const PestoDemo(), buildRoute: (BuildContext context) => const PestoDemo(),
), ),
......
...@@ -20,7 +20,7 @@ void main() { ...@@ -20,7 +20,7 @@ void main() {
// Scroll the Buttons demo into view so that a tap will succeed // Scroll the Buttons demo into view so that a tap will succeed
final Offset allDemosOrigin = tester.getTopRight(find.text('Demos')); final Offset allDemosOrigin = tester.getTopRight(find.text('Vignettes'));
final Finder button = find.text('Buttons'); final Finder button = find.text('Buttons');
while (button.evaluate().isEmpty) { while (button.evaluate().isEmpty) {
await tester.dragFrom(allDemosOrigin, const Offset(0.0, -200.0)); await tester.dragFrom(allDemosOrigin, const Offset(0.0, -200.0));
......
...@@ -37,7 +37,7 @@ void main() { ...@@ -37,7 +37,7 @@ void main() {
await tester.pump(const Duration(seconds: 1)); // end animation await tester.pump(const Duration(seconds: 1)); // end animation
// Open Demos // Open Demos
await tester.tap(find.text('Demos')); await tester.tap(find.text('Vignettes'));
await tester.pump(); // start animation await tester.pump(); // start animation
await tester.pump(const Duration(seconds: 1)); // end animation await tester.pump(const Duration(seconds: 1)); // end animation
......
...@@ -26,7 +26,7 @@ void main() { ...@@ -26,7 +26,7 @@ void main() {
final SerializableFinder stockList = find.byValueKey('Gallery List'); final SerializableFinder stockList = find.byValueKey('Gallery List');
expect(stockList, isNotNull); expect(stockList, isNotNull);
await driver.tap(find.text('Demos')); await driver.tap(find.text('Vignettes'));
await driver.tap(find.text('Components')); await driver.tap(find.text('Components'));
await driver.tap(find.text('Style')); await driver.tap(find.text('Style'));
......
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