-
Notifications
You must be signed in to change notification settings - Fork 29.4k
Use Material3 in the 2D viewport tests #128155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -161,14 +161,27 @@ void main() { | |
| )); | ||
| await tester.pumpAndSettle(); | ||
|
|
||
| // In the tests below the number of RepaintBoundary widgets depends on: | ||
| // ModalRoute - builds 2 | ||
| // GlowingOverscrollIndicator - builds 2 | ||
|
||
| // TwoDimensionalChildListDelegate - builds 1 unless addRepaintBoundaries is false | ||
|
|
||
| void expectModalRoute() { | ||
| expect(ModalRoute.of(tester.element(find.byType(SimpleListTableViewport))), isA<MaterialPageRoute<void>>()); | ||
| } | ||
|
|
||
| switch (defaultTargetPlatform) { | ||
| case TargetPlatform.android: | ||
| case TargetPlatform.fuchsia: | ||
| expectModalRoute(); | ||
| expect(find.byType(GlowingOverscrollIndicator), findsNWidgets(2)); | ||
| expect(find.byType(RepaintBoundary), findsNWidgets(7)); | ||
|
|
||
| case TargetPlatform.android: | ||
|
||
| case TargetPlatform.iOS: | ||
| case TargetPlatform.linux: | ||
| case TargetPlatform.macOS: | ||
| case TargetPlatform.windows: | ||
| expectModalRoute(); | ||
| expect(find.byType(RepaintBoundary), findsNWidgets(3)); | ||
| } | ||
|
|
||
|
|
@@ -183,13 +196,17 @@ void main() { | |
| await tester.pumpAndSettle(); | ||
|
|
||
| switch (defaultTargetPlatform) { | ||
| case TargetPlatform.android: | ||
| case TargetPlatform.fuchsia: | ||
| expectModalRoute(); | ||
| expect(find.byType(GlowingOverscrollIndicator), findsNWidgets(2)); | ||
| expect(find.byType(RepaintBoundary), findsNWidgets(6)); | ||
|
|
||
| case TargetPlatform.android: | ||
| case TargetPlatform.iOS: | ||
| case TargetPlatform.linux: | ||
| case TargetPlatform.macOS: | ||
| case TargetPlatform.windows: | ||
| expectModalRoute(); | ||
| expect(find.byType(RepaintBoundary), findsNWidgets(2)); | ||
| } | ||
| }, variant: TargetPlatformVariant.all()); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.