part of 'main.dart'; void onProgressChanged() { final shouldSkip = kIsWeb ? true : ![ TargetPlatform.android, TargetPlatform.iOS, TargetPlatform.macOS, ].contains(defaultTargetPlatform); skippableTestWidgets('onProgressChanged', (WidgetTester tester) async { final Completer onProgressChangedCompleter = Completer(); await tester.pumpWidget( Directionality( textDirection: TextDirection.ltr, child: InAppWebView( key: GlobalKey(), initialUrlRequest: URLRequest(url: TEST_URL_1), initialSettings: InAppWebViewSettings( clearCache: true, ), onProgressChanged: (controller, progress) { if (progress == 100 && !onProgressChangedCompleter.isCompleted) { onProgressChangedCompleter.complete(); } }, ), ), ); await expectLater(onProgressChangedCompleter.future, completes); }, skip: shouldSkip); }