forked from firka/flutter
New Gallery UI reprise (#17031)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user