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

This commit is contained in:
xster
2018-03-19 17:03:56 -07:00
committed by GitHub
parent d8f360717f
commit 33fea5c19a
4 changed files with 8 additions and 8 deletions

View File

@@ -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() {
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(),
), ),

View File

@@ -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));

View File

@@ -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

View File

@@ -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'));