jaguar_flutter_asset 2.2.0

  • Installing
  • Versions
  • 75


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 = Jaguar();
  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 = Jaguar();
  await server.serve(logRequests: true);

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


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: () {
        tooltip: 'Launch',
        child: new Icon(Icons.web),



  • Architecture

Use this package as a library

1. Depend on it

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

  jaguar_flutter_asset: ^2.2.0

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
2.2.0 Aug 15, 2018 Go to the documentation of jaguar_flutter_asset 2.2.0 Download jaguar_flutter_asset 2.2.0 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
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

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

  • Dart: 2.1.0
  • pana: 0.12.7
  • Flutter: 1.0.0


Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Maintenance suggestions

The description is too short. (-20 points)

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. (-10 points)

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 >=2.0.0-dev.65 <3.0.0
flutter 0.0.0
jaguar ^2.2.1 2.4.12
Transitive dependencies
auth_header 2.1.2
charcode 1.1.2
collection 1.14.11
convert 2.0.2
crypto 2.0.6
http_server 0.9.8+1
jaguar_common 2.1.4
logging 0.11.3+2
meta 1.1.6
mime 0.9.6+2
path 1.6.2
path_tree 2.2.2
sky_engine 0.0.99
stack_trace 1.9.3
typed_data 1.1.6
vector_math 2.0.8