shelf_packages_handler 1.0.4

  • Installing
  • Versions
  • 97

A package that provides a shelf handler for serving a packages/ directory. It's intended to be usable as the first handler in a Cascade, where any requests that include /packages/ are served package assets, and all other requests cascade to additional handlers.


  • Set max SDK version to <3.0.0, and adjust other dependencies.


  • Require Dart SDK 1.22.0
  • Support package:async v2


  • Fix Strong mode errors with package:shelf v0.7.x


  • Allow dependencies on package:shelf v0.7.x


  • Initial version

Use this package as a library

1. Depend on it

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

  shelf_packages_handler: ^1.0.4

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter packages get

Alternatively, your editor might support pub get or 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:shelf_packages_handler/shelf_packages_handler.dart';
Version Uploaded Documentation Archive
1.0.4 Jul 18, 2018 Go to the documentation of shelf_packages_handler 1.0.4 Download shelf_packages_handler 1.0.4 archive
1.0.3 Sep 21, 2017 Go to the documentation of shelf_packages_handler 1.0.3 Download shelf_packages_handler 1.0.3 archive
1.0.2 Aug 30, 2017 Go to the documentation of shelf_packages_handler 1.0.2 Download shelf_packages_handler 1.0.2 archive
1.0.1 Aug 25, 2017 Go to the documentation of shelf_packages_handler 1.0.1 Download shelf_packages_handler 1.0.1 archive
1.0.0 Jul 21, 2016 Go to the documentation of shelf_packages_handler 1.0.0 Download shelf_packages_handler 1.0.0 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 Aug 10, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0
  • pana: 0.11.8


Detected platforms: Flutter, other

Primary library: package:shelf_packages_handler/shelf_packages_handler.dart with components: io, isolate.


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 shelf_packages_handler.dart.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.22.0 <3.0.0
async >=1.1.0 <3.0.0 2.0.8
package_resolver ^1.0.0 1.0.4
path ^1.0.0 1.6.2
shelf >=0.6.0 <0.8.0 0.7.3+3
shelf_static ^0.2.0 0.2.8
Transitive dependencies
charcode 1.1.2
collection 1.14.11
convert 2.0.2
http 0.11.3+17
http_parser 3.1.3
mime 0.9.6+2
package_config 1.0.5
source_span 1.4.1
stack_trace 1.9.3
stream_channel 1.6.8
string_scanner 1.0.3
typed_data 1.1.6
Dev dependencies
test >=0.12.0 <2.0.0