wenzhiming / flutter_webview_pro Goto Github PK
View Code? Open in Web Editor NEWA Flutter plugin that provides a WebView widget who Support photo upload 一个在Flutter上支持图片上传、相机拍照、地理定位的webview插件
License: Apache License 2.0
A Flutter plugin that provides a WebView widget who Support photo upload 一个在Flutter上支持图片上传、相机拍照、地理定位的webview插件
License: Apache License 2.0
i use your packages and its work well android 11, but on android 12 i can't access on the keyboard.
How can I save any file, pictures, videos, pdf, etc. using webview_flutter_pro from Social Media like Facebook, Twitter, Pinterest...
Thanks!
in android emulator the languange is english but in my device is chinese, how i can change to english?
Hi.
I am trying to take a photo from your webview but it gives me a message 'take a photo need a grant permission'. So what I have to do to take a photo form webview as my website use this feature.
Thanks
我试了,不加flutter_webview_pro 1.0.3 IOS就能打开,加了就会报错,还是原来的那个错。位置是webview_flutter_wkwebview这个包,webview_flutter_wkwebview是官方webview_flutter下面的。
loadFile() option is missing
_controller.loadFile() i not there
Please add posibility to upload files like mp3, so not open images in gallery but get directly into files folder on clicking upload button. Thank you.
Hi,
This is great!
but can you fix the language in english when prompting file chooser?
Thanks alot for this plugin.
btw,
could you add geolocation support with this plugin?
I received this warning
/flutter_webview_pro-1.0.3/android/src/main/java/com/wzm/webviewflutter/FlutterWebView.java uses unchecked or unsafe operations.
how i cant change languange to english?
Hi, although, you've mentioned in the related issues and closed them that this issue has already been fixed, it's incomplete as you've not provided instructions or even mentioned in the ReadMe or Pub.dev package page that the Provider will need to be set-up in the Android manifest file.
Hence, I had to find the solution when I saw this error in a toast returned by the WebView
.
So, this is the solution just in case anybody else faces the same issue:
First, Copy the following code in AndroidManifest.xml
in android/Main
under the <application>
tag
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="${applicationId}.fileprovider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/provider_paths" />
</provider>
(You can replace ${applicationId}
above to your package id ex: com.app.name in case it doesn't work)
Then, create the xml folder in res and create a file named: provider_paths.xml
and then copy paste the code:
<?xml version="1.0" encoding="utf-8"?>
<paths xmlns:android="http://schemas.android.com/apk/res/android">
<external-path
name="external_files"
path="." />
</paths>
After setting this up, Take photo will start working.
Hi, 安裝該庫之後, ios 無法正常啟動 開啟時直接閃退
android 功能是正常的
The webview_flutter plugin has zoom option 'zoomEnabled' and 'runJavascriptReturningResult' for Run JavaScript in the context of the current page, and returns the result.
And I appreciate your great work you saved my day.
Dear @wenzhiming, could you please add geolocation support with next update?
Thanks alot for this.
warm regards,
Sandi
la prise en charge des photos ne fonctionne pas dans l'application android.
J'ai autorisé la camera dans mon AndroidManifest.xml
Malgré cela j'ai toujours la même erreur ça ne fonctionne pas.
Que faut il faire ?
Great job in wvp regarding file uploads! Thanks.
It seems de the initialCookies is missing, ideas on how to solve it while it gets implemented?... or maybe it is implemented and I'm wrong (how do I make use of it?).
Once again thanks!
my device xiomi mi a2
IOS运行的时候会报错,打开APP就定位到IOS文件这一行
(void)registerWithRegistrar:(NSObject)registrar {
FLTWebViewFactory webviewFactory =
[[FLTWebViewFactory alloc] initWithMessenger:registrar.messenger];
[registrar registerViewFactory:webviewFactory withId:@"plugins.flutter.io/webview"];
[FLTCookieManager registerWithRegistrar:registrar];
}
不知道是不是跟webview_flutter: 2.8.0还是flutter_webview_plugin: ^0.4.0有冲突?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.