youtube_player_flutter
youtube_player_flutter copied to clipboard
[BUG] Need webview_flutter_web as dependency
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 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.