diff --git a/demo_app/lib/screens/wordpress.dart b/demo_app/lib/screens/wordpress.dart index b6b3ed1e8..60d039fd1 100644 --- a/demo_app/lib/screens/wordpress.dart +++ b/demo_app/lib/screens/wordpress.dart @@ -160,7 +160,7 @@ class _PostsState extends State<_PostsList> { ); } - List<_Post> _parseJson(json) { + List<_Post> _parseJson(dynamic json) { final posts = <_Post>[]; if (json is List) { for (final postJson in json) { diff --git a/packages/core/test/core_config_test.dart b/packages/core/test/core_config_test.dart index 0ab104561..b0ed61268 100644 --- a/packages/core/test/core_config_test.dart +++ b/packages/core/test/core_config_test.dart @@ -522,7 +522,7 @@ void main() { _OnTapUrlApp( href: href, onTapCallbackResults: onTapCallbackResults, - onTapUrl: (_) async => false, + onTapUrl: (_) => false, ), ); await tester.pumpAndSettle(); @@ -539,7 +539,7 @@ void main() { _OnTapUrlApp( href: href, onTapCallbackResults: onTapCallbackResults, - onTapUrl: (_) async => true, + onTapUrl: (_) => true, ), ); await tester.pumpAndSettle(); diff --git a/packages/enhanced/test/_.dart b/packages/enhanced/test/_.dart index 58c1fc614..49543b812 100644 --- a/packages/enhanced/test/_.dart +++ b/packages/enhanced/test/_.dart @@ -37,7 +37,7 @@ Future explain( Widget? hw, GlobalKey? key, bool useExplainer = true, -}) async { +}) { key ??= helper.hwKey; return helper.explain( tester, diff --git a/packages/enhanced/test/config_test.dart b/packages/enhanced/test/config_test.dart index 0dfaaf8be..ba9d5b578 100644 --- a/packages/enhanced/test/config_test.dart +++ b/packages/enhanced/test/config_test.dart @@ -508,7 +508,7 @@ void main() { tester, HtmlWidget( 'Tap me', - onTapUrl: (url) async { + onTapUrl: (url) { urls.add(url); return false; }, @@ -529,7 +529,7 @@ void main() { tester, HtmlWidget( 'Tap me', - onTapUrl: (url) async { + onTapUrl: (url) { urls.add(url); return true; }, diff --git a/packages/fwfh_just_audio/test/_.dart b/packages/fwfh_just_audio/test/_.dart index 5cb77b498..d74948091 100644 --- a/packages/fwfh_just_audio/test/_.dart +++ b/packages/fwfh_just_audio/test/_.dart @@ -22,7 +22,7 @@ Future explain( WidgetTester tester, String html, { bool useExplainer = true, -}) async => +}) => helper.explain( tester, null, diff --git a/packages/fwfh_svg/test/_.dart b/packages/fwfh_svg/test/_.dart index 78899527a..19b8a54c9 100644 --- a/packages/fwfh_svg/test/_.dart +++ b/packages/fwfh_svg/test/_.dart @@ -27,7 +27,7 @@ Future explain( WidgetTester tester, String html, { bool useExplainer = true, -}) async => +}) => helper.explain( tester, null, diff --git a/packages/fwfh_url_launcher/test/_.dart b/packages/fwfh_url_launcher/test/_.dart index c0e517f16..d467fec8b 100644 --- a/packages/fwfh_url_launcher/test/_.dart +++ b/packages/fwfh_url_launcher/test/_.dart @@ -6,7 +6,7 @@ import '../../core/test/_.dart' as helper; const tapText = helper.tapText; -Future explain(WidgetTester tester, String html) async => +Future explain(WidgetTester tester, String html) => helper.explain( tester, null, diff --git a/packages/fwfh_webview/test/_.dart b/packages/fwfh_webview/test/_.dart index 1bb996034..457200b49 100644 --- a/packages/fwfh_webview/test/_.dart +++ b/packages/fwfh_webview/test/_.dart @@ -45,7 +45,7 @@ Future explain( String html, { Uri? baseUrl, bool useExplainer = true, -}) async => +}) => helper.explain( tester, null, diff --git a/packages/fwfh_webview/test/mock_webview_platform.dart b/packages/fwfh_webview/test/mock_webview_platform.dart index eed4651f7..2261f2e03 100644 --- a/packages/fwfh_webview/test/mock_webview_platform.dart +++ b/packages/fwfh_webview/test/mock_webview_platform.dart @@ -74,7 +74,7 @@ abstract class FakeWebViewController extends PlatformWebViewController { FutureOr onNavigationRequest({ required String url, required bool isMainFrame, - }) async { + }) { final req = NavigationRequest(url: url, isMainFrame: isMainFrame); return _handler?._onNavigationRequest?.call(req); }