mirror of
https://github.com/flutter/samples.git
synced 2025-11-10 14:58:34 +00:00
Improvements to M3 demo app (#1647)
* improvements * fix focus * add comment * add comment * copy changes to root material_3_demo * fix large breakpoint * fix large breakpoint * Create integration_test.dart * refactor main.dart into home.dart and constants.dart * add integration_test to pubspec * copy to root material_3_demo * remove removal of constraints * address feedback
This commit is contained in:
@@ -16,7 +16,7 @@ void main() {
|
||||
'selected on NavigationBar', (tester) async {
|
||||
widgetSetup(tester, 449);
|
||||
addTearDown(tester.binding.window.clearPhysicalSizeTestValue);
|
||||
await tester.pumpWidget(const MaterialApp(home: Material3Demo()));
|
||||
await tester.pumpWidget(const App());
|
||||
|
||||
expect(find.text('Surface Tint Color Only'), findsNothing);
|
||||
expect(find.byType(NavigationBar), findsOneWidget);
|
||||
@@ -41,7 +41,7 @@ void main() {
|
||||
widgetSetup(
|
||||
tester, 1200); // NavigationRail shows only when width is > 1000.
|
||||
addTearDown(tester.binding.window.clearPhysicalSizeTestValue);
|
||||
await tester.pumpWidget(const MaterialApp(home: Material3Demo()));
|
||||
await tester.pumpWidget(const App());
|
||||
expect(find.text('Surface Tint Color Only'), findsNothing);
|
||||
Finder tintIconOnRail = find.descendant(
|
||||
of: find.byType(NavigationRail),
|
||||
|
||||
Reference in New Issue
Block a user