/flutter_webview

Example showing how to serve from Flutter assets to webview

Primary LanguageDart

flutter_webview

Example showing how to serve files from asset to Webview.

Uses jaguar_flutter_asset package to serve files from asset.

Explanation

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/');