fluttercommunity / fluttercommunity/flutter_webview_plugin
Load local webpage from assets
- Lingua principale
- Java
- Stelle
- 1.5k
- Fork
- 938
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
I try to load a local webpage from my assets:
```dart
new WebviewScaffold(
url: "file:///assets/web/loesungen.html",
allowFileURLs: true,
…
```
But if I open the view in Android emulator I get the error message:
The webpage as **file:///assets/web/loesungen.html** could not be loaded because:
net::ERR_FILE_NOT_FOUND
The assets webpage is correct included in pubspec.yaml and I can load the webpage with:
```dart
final htmlData = await rootBundle.loadString('assets/web/loesungen.html');
```
I user Flutter 1.2.1, Dart 2.1.2 and flutter_webview_plugin 0.3.0
Any ideas why it’s not work?
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.