Showing
1 changed file
with
4 additions
and
1 deletions
| @@ -43,7 +43,7 @@ void main() { | @@ -43,7 +43,7 @@ void main() { | ||
| 43 | data: currentData, | 43 | data: currentData, |
| 44 | child: ScreenUtilInit( | 44 | child: ScreenUtilInit( |
| 45 | designSize: designSize, | 45 | designSize: designSize, |
| 46 | - builder: (context, child) => MaterialApp( | 46 | + child: MaterialApp( |
| 47 | home: Material( | 47 | home: Material( |
| 48 | child: TextButton( | 48 | child: TextButton( |
| 49 | key: _key, | 49 | key: _key, |
| @@ -68,6 +68,9 @@ void main() { | @@ -68,6 +68,9 @@ void main() { | ||
| 68 | // Tests with initial screen size | 68 | // Tests with initial screen size |
| 69 | testSize(initialSize); | 69 | testSize(initialSize); |
| 70 | 70 | ||
| 71 | + // Wait for FutureBuilder to be resolved | ||
| 72 | + await tester.pumpAndSettle(); | ||
| 73 | + | ||
| 71 | // Click On button to simulate changing screen size | 74 | // Click On button to simulate changing screen size |
| 72 | await tap(); | 75 | await tap(); |
| 73 | // Tests with bigger screen size | 76 | // Tests with bigger screen size |
-
Please register or login to post a comment