diff --git a/packages/webview_flutter/webview_flutter_android/example/lib/web_view.dart b/packages/webview_flutter/webview_flutter_android/example/lib/web_view.dart index 9a535cc38d2b..6a5a3f68f0a3 100644 --- a/packages/webview_flutter/webview_flutter_android/example/lib/web_view.dart +++ b/packages/webview_flutter/webview_flutter_android/example/lib/web_view.dart @@ -568,6 +568,8 @@ class WebViewController { bool? hasNavigationDelegate; bool? hasProgressTracking; bool? debuggingEnabled; + // TODO(mvanbeusekom): Cleanup and convert to const constructor when platform_interface is fixed (see https://github.com/flutter/flutter/issues/94311) + // ignore: prefer_const_constructors WebSetting userAgent = WebSetting.absent(); bool? zoomEnabled; if (currentValue.javascriptMode != newValue.javascriptMode) { diff --git a/packages/webview_flutter/webview_flutter_android/test/webview_android_widget_test.dart b/packages/webview_flutter/webview_flutter_android/test/webview_android_widget_test.dart index 0c90f2a4a19c..f34fe199cdf8 100644 --- a/packages/webview_flutter/webview_flutter_android/test/webview_android_widget_test.dart +++ b/packages/webview_flutter/webview_flutter_android/test/webview_android_widget_test.dart @@ -70,6 +70,8 @@ void main() { creationParams: creationParams ?? CreationParams( webSettings: WebSettings( + // TODO(mvanbeusekom): Cleanup and convert to const constructor when platform_interface is fixed (see https://github.com/flutter/flutter/issues/94311) + // ignore: prefer_const_constructors userAgent: WebSetting.absent(), hasNavigationDelegate: hasNavigationDelegate, hasProgressTracking: hasProgressTracking, @@ -121,6 +123,8 @@ void main() { creationParams: CreationParams( initialUrl: 'https://www.google.com', webSettings: WebSettings( + // TODO(mvanbeusekom): Cleanup and convert to const constructor when platform_interface is fixed (see https://github.com/flutter/flutter/issues/94311) + // ignore: prefer_const_constructors userAgent: WebSetting.absent(), hasNavigationDelegate: false, ), @@ -138,6 +142,8 @@ void main() { creationParams: CreationParams( userAgent: 'MyUserAgent', webSettings: WebSettings( + // TODO(mvanbeusekom): Cleanup and convert to const constructor when platform_interface is fixed (see https://github.com/flutter/flutter/issues/94311) + // ignore: prefer_const_constructors userAgent: WebSetting.absent(), hasNavigationDelegate: false, ), @@ -154,6 +160,8 @@ void main() { autoMediaPlaybackPolicy: AutoMediaPlaybackPolicy.require_user_action_for_all_media_types, webSettings: WebSettings( + // TODO(mvanbeusekom): Cleanup and convert to const constructor when platform_interface is fixed (see https://github.com/flutter/flutter/issues/94311) + // ignore: prefer_const_constructors userAgent: WebSetting.absent(), hasNavigationDelegate: false, ), @@ -169,6 +177,8 @@ void main() { creationParams: CreationParams( autoMediaPlaybackPolicy: AutoMediaPlaybackPolicy.always_allow, webSettings: WebSettings( + // TODO(mvanbeusekom): Cleanup and convert to const constructor when platform_interface is fixed (see https://github.com/flutter/flutter/issues/94311) + // ignore: prefer_const_constructors userAgent: WebSetting.absent(), hasNavigationDelegate: false, ), @@ -184,6 +194,8 @@ void main() { creationParams: CreationParams( javascriptChannelNames: {'a', 'b'}, webSettings: WebSettings( + // TODO(mvanbeusekom): Cleanup and convert to const constructor when platform_interface is fixed (see https://github.com/flutter/flutter/issues/94311) + // ignore: prefer_const_constructors userAgent: WebSetting.absent(), hasNavigationDelegate: false, ), @@ -202,6 +214,8 @@ void main() { tester, creationParams: CreationParams( webSettings: WebSettings( + // TODO(mvanbeusekom): Cleanup and convert to const constructor when platform_interface is fixed (see https://github.com/flutter/flutter/issues/94311) + // ignore: prefer_const_constructors userAgent: WebSetting.absent(), javascriptMode: JavascriptMode.unrestricted, hasNavigationDelegate: false, @@ -217,6 +231,8 @@ void main() { tester, creationParams: CreationParams( webSettings: WebSettings( + // TODO(mvanbeusekom): Cleanup and convert to const constructor when platform_interface is fixed (see https://github.com/flutter/flutter/issues/94311) + // ignore: prefer_const_constructors userAgent: WebSetting.absent(), hasNavigationDelegate: true, ), @@ -232,6 +248,8 @@ void main() { tester, creationParams: CreationParams( webSettings: WebSettings( + // TODO(mvanbeusekom): Cleanup and convert to const constructor when platform_interface is fixed (see https://github.com/flutter/flutter/issues/94311) + // ignore: prefer_const_constructors userAgent: WebSetting.absent(), debuggingEnabled: true, hasNavigationDelegate: false, @@ -247,6 +265,8 @@ void main() { tester, creationParams: CreationParams( webSettings: WebSettings( + // TODO(mvanbeusekom): Cleanup and convert to const constructor when platform_interface is fixed (see https://github.com/flutter/flutter/issues/94311) + // ignore: prefer_const_constructors userAgent: WebSetting.of('myUserAgent'), hasNavigationDelegate: false, ), @@ -261,6 +281,8 @@ void main() { tester, creationParams: CreationParams( webSettings: WebSettings( + // TODO(mvanbeusekom): Cleanup and convert to const constructor when platform_interface is fixed (see https://github.com/flutter/flutter/issues/94311) + // ignore: prefer_const_constructors userAgent: WebSetting.absent(), zoomEnabled: false, hasNavigationDelegate: false,