Example showing how to serve files from asset to Webview.
Uses jaguar_flutter_asset
package to serve files from asset.
This example serves flutter assets from asset directory using FlutterAssetServer
on port 8080.
final server = new Jaguar();
server.addApi(new FlutterAssetServer());
await server.serve();
It launches a webview on click of a button and point it to http://localhost:8080/
.
flutterWebviewPlugin.launch('http://localhost:8080/',
fullScreen: true);