fluttercommunity / fluttercommunity/flutter_webview_plugin
can not load local images with html data string
- Lingua principale
- Java
- Stelle
- 1.5k
- Fork
- 938
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Hello, sir
I met an issue about loading images that are stored locally .
I tried using
```
return WebviewScaffold(
url: new Uri.dataFromString(widget.topicContentEntity.content,
mimeType: 'text/html', encoding: Encoding.getByName("utf-8"))
.toString(),
withJavascript: true,
withLocalUrl: true,
allowFileURLs: true,
);
```
the local html string contains
`""`
but it always failed to load local image with this warning
\"flutter webview not allowed to load local resource\"
before , I used
https://developer.android.com/reference/android/webkit/WebView.html#loadDataWithBaseURL ?
with native android code to load the html string and the image.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.