jaguar_flutter_asset 2.2.0

  • Readme
  • Changelog
  • Installing
  • 68

jaguar_flutter_asset #

Serve files from Flutter assets.

Example showing how to use it in a project.

Usage #

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),

Changelog #

2.2.0 #

  • 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 pub get

Alternatively, your editor might support flutter pub 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';
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 Jul 8, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.8.4
  • pana: 0.13.13
  • Flutter: 1.17.5

Analysis suggestions

Package not compatible with SDK dart

because of import path [jaguar_flutter_asset] that is in a package requiring null.

Package not compatible with runtime flutter-web on web

Because of the import of dart:io via the import chain package:jaguar_flutter_asset/jaguar_flutter_asset.dartpackage:jaguar/jaguar.dartdart:io

Maintenance suggestions

Package is getting outdated. (-89.86 points)

The package was last published 99 weeks ago.

The package description is too short. (-20 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and jaguar_flutter_asset.dart. Packages with multiple examples should provide example/

For more information see the pub package layout conventions.


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.43
Transitive dependencies
auth_header 2.1.4
charcode 1.1.3
collection 1.14.12 1.14.13
convert 2.1.1
crypto 2.1.5
http_server 0.9.8+3
jaguar_common 2.1.4
jaguar_serializer 2.2.12
logging 0.11.4
meta 1.1.8 1.2.1
mime 0.9.6+3
path 1.7.0
path_tree 2.2.2
sky_engine 0.0.99
stack_trace 1.9.5
typed_data 1.1.6 1.2.0
vector_math 2.0.8