jaguar_flutter_asset 1.1.5

  • Installing
  • Versions
  • 74


Serve files from Flutter assets.

Example showing how to use it in a project.


Use FlutterAssetServer request handler to serve files from flutter assets.

  final server = new Jaguar();
  server.addApi(new FlutterAssetServer());
  await server.serve();

Complete example

import 'package:flutter/material.dart';
import 'package:jaguar/jaguar.dart';
import 'package:jaguar_flutter_asset/jaguar_flutter_asset.dart';

import 'package:flutter_webview_plugin/flutter_webview_plugin.dart';

final flutterWebviewPlugin = new FlutterWebviewPlugin();

main() async {
  final server = new Jaguar();
  server.addApi(new FlutterAssetServer());
  await server.serve();

  server.log.onRecord.listen((r) => print(r));

  runApp(new MyApp());

class MyApp extends StatelessWidget {
  Widget build(BuildContext context) {
    return new MaterialApp(
      title: 'Jaguar Demo',
      theme: new ThemeData(
      home: new MyHomePage(title: 'Jaguar Demo'),

class MyHomePage extends StatelessWidget {
  MyHomePage({Key key, this.title}) : super(key: key);

  final String title;

  Widget build(BuildContext context) {
    return new Scaffold(
      appBar: new AppBar(
        title: new Text(title),
      body: new Center(
        child: new Column(
          children: <Widget>[
            new Text(
              'Press the button to launch webview!',
      floatingActionButton: new FloatingActionButton(
        onPressed: () {
              fullScreen: true);
        tooltip: 'Launch',
        child: new Icon(Icons.web),



  • Strip prefix

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  jaguar_flutter_asset: "^1.1.5"

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter packages get

Alternatively, your editor might support flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

      import 'package:jaguar_flutter_asset/jaguar_flutter_asset.dart';
Version Uploaded Documentation Archive
1.1.5 Jan 12, 2018 Go to the documentation of jaguar_flutter_asset 1.1.5 Download jaguar_flutter_asset 1.1.5 archive
0.7.1 Jan 11, 2018 Go to the documentation of jaguar_flutter_asset 0.7.1 Download jaguar_flutter_asset 0.7.1 archive


We analyzed this package on Jun 12, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0-dev.60.0
  • pana: 0.11.3
  • Flutter: 0.5.2


Describes how popular the package is relative to other packages. [more]
48 / 100
Code health derived from static analysis. [more]
100 / 100
Reflects how tidy and up-to-date the package is. [more]
100 / 100
Overall score:
Weighted score of the above. [more]
Learn more about scoring.


Detected platforms: Flutter

References Flutter, and has no conflicting libraries.


  • The description is too short.

    Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

  • Maintain an example.

    Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use jaguar_flutter_asset.dart.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.8.0 <2.0.0
flutter 0.0.0
jaguar ^1.1.5 1.3.11 2.1.7
Transitive dependencies
args 1.4.3
charcode 1.1.1
collection 1.14.6 1.14.10
convert 2.0.1
crypto 2.0.3
http_server 0.9.7
logging 0.11.3+1
meta 1.1.5
mime 0.9.6+1
path 1.6.0
sky_engine 0.0.99
source_span 1.4.0
stack_trace 1.9.2
string_scanner 1.0.2
typed_data 1.1.5
vector_math 2.0.6 2.0.7
yaml 2.1.14
Dev dependencies
test ^0.12.0