You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a hybrid Android application where some rendering is handled by a WebView but controls for things like navigation are handled by native UI widgets. I would like to port a version to Flutter, off the top of my head the requirements for getting this to work are:
A way to add a WebView into the rendered tree so that it can live along side native widgets for things like navigation buttons.
A way to intercept HTTP requests from the WebView.
The last item here allows us to stream the contents of PDF files to the WebView. The current Android implementation intercepts HTTP requests from the WebView and streams back the contents of the requested PDF file. The implementation can be seen here.
I'm new to Flutter so I may have gotten some of the terminology wrong, let me know if you need clarification on anything.
Reacted by Hoa Vu, Abhishek Pahwa, kalevvallsalu, Mark Han, Greg Kochaniak, Vicky Chijwani, Thomas Hruska, James Gao, wesley, 4over7 and 2 more
Reacted by Scott Pierce, Reekdeb Mal, James Power, Honza Bittner, Anatoly Ostrovsky, Orel Zion, Abhishek Pahwa, Mark Han, Steven Farley, m8e and 1 more
This is more about having a way to put a WebView within a Flutter widget tree, I think. As you say in your original comment, we need something similar for embedding videos or maps provided by a third-party non-Flutter library.
Reacted by Pieter Greyling, Ravi Teja Gudapati, Heinrich Dahms and hyjfine
@InMatrix Sorry for my misunderstanding. Many thanks your explanation and I really appreciate it. I look forward to the release of the official WebView plugin.
flutter-team-archive/plugins#890 added iOS support to the webview_flutter plugin.
The platform views embedding support, which the inline webview is based on, is still in early preview (see #19030 (comment) ).
Open issues are tagged with the platform-views and/or webview labels, please upvote the issues you care about to help us prioritize.
Reacted by Iguchi Tomokatsu, xster, Mike Chong, KennyLisc, kalevvallsalu, Yoav Rofé, heng, Vali and Jrog
Reacted by Matthew Danics, Iguchi Tomokatsu, xster, Mike Chong, kalevvallsalu, Greg Price, heng and asep-nugraha
The absence of a usable WebView is really a deal-breaker to me personally.
flutter_inappbrowser is a great package that comes very close to full usability but still lacks keyboard support yet. Unfortunately, I was just going to build a code editor app........
Just to clarify: The webview_flutter plugin provides an embedded WebView on Android and iOS and is currently in developers preview.
We are tracking issues and missing features with the webview tag, if you care about specific issues you can help by filing an issue if there's isn't one yet, or upvoting an existing issue. PRs are of course also welcomed 😄
Reacted by Mike Chong, Ron Wolf, danielRi, asep-nugraha and Jrog
@amirh Sorry to hassle you with questions. We are heavily considering moving over to Flutter for a upcoming project, but we rely on a WebView to work (inline, flutter_webview_plugin is not an option). Do you have any information about upcoming updates or a roadmap for us? Thank you very much for any reply, keep up the great work and may the Flutter love spread around the world.
Reacted by Iguchi Tomokatsu, ZhennanWu, Đào Hoàng Sơn and Spencer Gaston
Very interesting topic for my problem, I have come across to this topic after struggling a lot to find a right web view for flutter. Unfortunately, this new plugin (still developer preview) has a big issue with Android when I tried to open keyboard. Would that be fixed when it comes to release?
There are pros and cons (the obvious one is binary size).
I definitely see how for certain use case bundling a web engine would be the preferred choice.
It may be possible to add this as an alternative webview_flutter implementation by implementing the platform interface. If anyone gives it a shot I'm curious to lean about it!
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
jxson commentedon Jan 4, 2016
Adding an example use case for this:
I have a hybrid Android application where some rendering is handled by a WebView but controls for things like navigation are handled by native UI widgets. I would like to port a version to Flutter, off the top of my head the requirements for getting this to work are:
The last item here allows us to stream the contents of PDF files to the WebView. The current Android implementation intercepts HTTP requests from the WebView and streams back the contents of the requested PDF file. The implementation can be seen here.
I'm new to Flutter so I may have gotten some of the terminology wrong, let me know if you need clarification on anything.
eseidelGoogle commentedon May 13, 2016
We're currently moving towards an approach of making it easier to use native views in conjunction with FlutterView:
https://docs.google.com/document/d/1DOfwpL6VojCAG_zjjcA_z5ekF7rTIohV8dWn2o7_IME/edit
Hixie commentedon May 13, 2016
This is more about having a way to put a WebView within a Flutter widget tree, I think. As you say in your original comment, we need something similar for embedding videos or maps provided by a third-party non-Flutter library.
owenthereal commentedon Jan 17, 2017
Any updates on integrating a webview with flutter?
eseidelGoogle commentedon May 14, 2017
Looks like someone has started a plugin to do full screen webviews: https://github.com/dart-flitter/flutter_webview_plugin
97 remaining items
MikeChongCan commentedon Nov 8, 2018
@InMatrix Sorry for my misunderstanding. Many thanks your explanation and I really appreciate it. I look forward to the release of the official WebView plugin.
amirh commentedon Nov 10, 2018
flutter-team-archive/plugins#890 added iOS support to the webview_flutter plugin.
The platform views embedding support, which the inline webview is based on, is still in early preview (see #19030 (comment) ).
Open issues are tagged with the platform-views and/or webview labels, please upvote the issues you care about to help us prioritize.
amirh commentedon Nov 10, 2018
Note that if you want to try it out on iOS you will need to enable the preview flag, see more details on:
#19030 (comment)
ZhennanWu commentedon Nov 29, 2018
The absence of a usable WebView is really a deal-breaker to me personally.
flutter_inappbrowser is a great package that comes very close to full usability but still lacks keyboard support yet. Unfortunately, I was just going to build a code editor app........
amirh commentedon Dec 5, 2018
Just to clarify: The webview_flutter plugin provides an embedded WebView on Android and iOS and is currently in developers preview.
We are tracking issues and missing features with the webview tag, if you care about specific issues you can help by filing an issue if there's isn't one yet, or upvoting an existing issue. PRs are of course also welcomed 😄
danielRi commentedon Dec 12, 2018
@amirh Sorry to hassle you with questions. We are heavily considering moving over to Flutter for a upcoming project, but we rely on a WebView to work (inline, flutter_webview_plugin is not an option). Do you have any information about upcoming updates or a roadmap for us? Thank you very much for any reply, keep up the great work and may the Flutter love spread around the world.
zoechi commentedon Dec 13, 2018
@danielRi https://pub.dartlang.org/packages/webview_flutter
kyawsithu commentedon Mar 14, 2019
Very interesting topic for my problem, I have come across to this topic after struggling a lot to find a right web view for flutter. Unfortunately, this new plugin (still developer preview) has a big issue with Android when I tried to open keyboard. Would that be fixed when it comes to release?
droplet-js commentedon Sep 29, 2019
i think foreign function interface + webkit is best way. inline android webview or ios wkwebview is not good idea
amirh commentedon Sep 30, 2019
There are pros and cons (the obvious one is binary size).
I definitely see how for certain use case bundling a web engine would be the preferred choice.
It may be possible to add this as an alternative
webview_flutterimplementation by implementing the platform interface. If anyone gives it a shot I'm curious to lean about it!github-actions commentedon Aug 25, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.