Navigation Menu

Skip to content

jaguar-examples/flutter_webview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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