New Gallery UI reprise (#17031)

This commit is contained in:
Hans Muller
2018-04-27 08:11:20 -07:00
committed by GitHub
parent 4033937c89
commit bf3bd7667f
38 changed files with 2094 additions and 1253 deletions

View File

@@ -18,25 +18,16 @@ void main() {
await tester.pump(); // see https://github.com/flutter/flutter/issues/1865
await tester.pump(); // triggers a frame
// 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();
}
Scrollable.ensureVisible(tester.element(find.text('Material')), alignment: 0.5);
await tester.pumpAndSettle();
await tester.tap(find.text('Material'));
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.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.pumpAndSettle();
await tester.tap(find.byTooltip('Show example code'));
await tester.pump(); // start animation