Created
September 9, 2025 08:31
-
-
Save YonatanKra/c6da689f410118cb7a63deba2d0cd86f to your computer and use it in GitHub Desktop.
Flutter widget second approach
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| testWidgets('should display “mock_first” in a big card', ( WidgetTester tester, ) async { | |
| await tester.pumpWidget( | |
| ChangeNotifierProvider<MyAppState>( | |
| create: (context) => MockAppState(), | |
| child: MaterialApp(home: MyHomePage()), | |
| ), | |
| ); | |
| expect(getBigCardText(tester), equals('mock_first')); | |
| }); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment