fluttercommunity / flutter_webview_plugin

Community WebView Plugin - Allows Flutter to communicate with a native WebView.
https://pub.dev/packages/flutter_webview_plugin
Other
1.48k stars 929 forks source link

Infinite logs of 'Mixed Content: The page at' even after disposing the the screen that uses webView #835

Closed bismarabia closed 3 years ago

bismarabia commented 3 years ago

The webView is successfully loaded and here is my code

class CustomInfoHealthScreen extends StatelessWidget {
  final String url;

  CustomInfoHealthScreen(this.url);

  @override
  Widget build(BuildContext context) {
    return WebviewScaffold(
      appBar: AppBar(
        title: Text(FlutterI18n.translate(context, StringsKeys.str_customHealthInfo)),
        leading: getAppBarLeadingIcon(context, icon: Icons.close),
      ),
      url: url,
      allowFileURLs: true,
      clearCache: true,
      appCacheEnabled: false,
    );
  }
}

but those logs keeps coming without stopping even after disposing this screen.

am I doing anything wrong while using the plugin?

bismarabia commented 3 years ago

this seems to have nothing to do with the plugin, the error is coming from the link itself. Hence, closing this issue.