Revert "New Flutter Gallery UI" (#16984)

* Revert "New Flutter Gallery UI (#16936)"

This reverts commit 7038597b02.
This commit is contained in:
Hans Muller
2018-04-25 18:41:07 -07:00
committed by Chris Bracken
parent e06f69e1cd
commit 38d5d46127
37 changed files with 1253 additions and 2094 deletions

View File

@@ -18,16 +18,25 @@ void main() {
await tester.pump(); // see https://github.com/flutter/flutter/issues/1865
await tester.pump(); // triggers a frame
Scrollable.ensureVisible(tester.element(find.text('Material')), alignment: 0.5);
await tester.pumpAndSettle();
await tester.tap(find.text('Material'));
await tester.pumpAndSettle();
// Scroll the Buttons demo into view so that a tap will succeed
final Offset allDemosOrigin = tester.getTopRight(find.text('Vignettes'));
final Finder button = find.text('Buttons');
while (button.evaluate().isEmpty) {
await tester.dragFrom(allDemosOrigin, const Offset(0.0, -200.0));
await tester.pumpAndSettle();
}
// Launch the buttons demo and then prove that showing the example
// code dialog does not crash.
await tester.tap(find.text('Buttons'));
await tester.pumpAndSettle();
await tester.pump(); // start animation
await tester.pump(const Duration(seconds: 1)); // end animation
await tester.tap(find.text('RAISED'));
await tester.pump(); // start animation
await tester.pump(const Duration(seconds: 1)); // end animation
await tester.tap(find.byTooltip('Show example code'));
await tester.pump(); // start animation