-
Notifications
You must be signed in to change notification settings - Fork 824
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
conflict with webview_flutter #11
Comments
A related problem occurs on android, where the following exception is thrown and the application exits before first frame render. |
Sorry for late response 😐, but this plugin has in-built webview plugin, so no need to add webview plugin separately. |
@sarbagyastha But my app also uses the webview directly. Can it use the forked version, will that be kept up-to-date with the latest version of webview_flutter? Can the changes in this plugin's fork of webview_flutter be merged upstream so it no longer requires the fork? |
I'm using webview_flutter: ^0.3.6 in my app but when having both of them it gives the above error. and when I remove the webview_flutter: ^0.3.6 it gives error because my app needs it. |
@GeertJohan yes the forked version will be kept up-to-date for major updates and performance improvements. Yes, it could be merged but takes a long time to get merge, there are currently many pending webview_flutter PRs in project tracking. |
@Xoshbin , will be updating the plugin tonight, where access to in-built webview will be exported. |
@sarbagyastha Thanks I will wait for it then :) |
Version 1.1.1 addresses the issue. |
It's not working for me yet, I did remove the webview from dependencies it still gives error, and when I add it it still gives the same error above. |
did you perform full build ? |
Yes I did a full build, and |
Also, If you're using Android Studio, please try invalidating cache. Or perform |
Do I have to keep the webview_flutter in the dependancies or remove it? |
I did that too, still not working! |
I'm able to use the built in
I think this should be mentioned in the Readme file |
@sarbagyastha Thanks it's working now. |
Can you please make a big note about this in the readme? And also add the import as specified by @3ace ? import 'package:ytview/ytview.dart'; This was a very difficult issue to debug. Maybe actually add a link to this page in the readme? I find that the existing text is not very clear, especially for someone new to Flutter. Existing text: Proposal text:Conflict with webview You may get an exception like: The plugin causes conflict with webview_flutter plugin as this plugin already contains webview as its dependency. So there is no need of separately adding webview_flutter. You can use WebView from the plugin itself. This means:
How does this text sound to you? Thank you for the great work, by the way! |
thanks! Great work 😸 |
When I import It throws an error that - The method "WebView" is not defined. |
YouTube player plugin uses another plugin webview_media and that uses webview_flutter plugin, so use following import the error should be gone import 'package:webview_media/webview_flutter.dart' |
This is the most correct Answer. |
I had the same issue using webview_flutter and youtube_player_flutter. I used the solution by @srinivasanrsp. It works.
This works just fine. |
when I include both
webview_flutter
andyoutube_player_flutter
, application would crash upon starts with the following warning and errorI had to remove
webview_flutter
to be able to run the application.I only tested this problem on iOS using simulator.
The text was updated successfully, but these errors were encountered: