youtube_player_flutter icon indicating copy to clipboard operation
youtube_player_flutter copied to clipboard

[BUG] Need webview_flutter_web as dependency

Open dnzzcn opened this issue 2 years ago • 1 comments

Describe the bug We are using webview_flutter package on our web app. Since youtube_player_iframe uses webview_flutter as well, we remove the package from our dependencies to use the what comes with youtube_player_iframe. However, it doesn't have webview_flutter_web as a dependency, and we cannot load web pages with

WebViewController()..loadRequest(Uri.parse(urlString))

and we get 'loadRequest is not implemented on the current platform' error.

Adding webview_flutter_web to our pubspec.yaml didn't solve the issue. Could you please add webview_flutter_web as a dependency? Or can you suggest another solution?

Thank you.

Technical Details:

  • Web app

dnzzcn avatar Feb 23 '23 15:02 dnzzcn

@dnzzcn I was having the same issue, but then I figured you have to add WebViewPlatform.instance = WebWebViewPlatform(); before your runApp. It is kind of hidden in the webview_flutter_web example https://pub.dev/packages/webview_flutter_web/example.

paulononaka avatar Nov 06 '23 02:11 paulononaka