routex_web 0.0.3

  • Readme
  • Changelog
  • Installing
  • 37

A library for Dart developers.

Created from templates made available by Stagehand under a BSD-style license.

Usage #

A simple usage example:

import 'package:web/routex_web.dart';

main() {
  var awesome = new Awesome();
}

Features and bugs #

Please file feature requests and bugs at the issue tracker.

0.0.3 #

...

0.0.1 #

  • Initial version

Use this package as a library

1. Depend on it

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


dependencies:
  routex_web: ^0.0.3

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter pub get

Alternatively, your editor might support pub get or 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:routex_web/routex_web.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
0
Health:
Code health derived from static analysis. [more]
95
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
40
Overall:
Weighted score of the above. [more]
37
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

Analysis suggestions

Package not compatible with runtime flutter-web on web

Because of the import of dart:io via the import chain package:routex_web/routex_web.dartpackage:routex_web/src/routing_context_wrapper.dartpackage:routex_web/src/routing_context_impl_base.dartpackage:routex_web/src/router_impl.dartpackage:routex_web/src/routing_context_impl.dartpackage:routex_web/src/route_impl.dartpackage:routex_core/routex_core.dartpackage:routex_core/src/bootstrap/router_binder.dartpackage:routex_core/src/bootstrap/router_bindable.dartpackage:routex_core/src/router.dartpackage:routex_core/src/routing_context.dartpackage:routex_core/src/web/http_server_request.dartdart:io

Package not compatible with runtime web

Because of the import of dart:io via the import chain package:routex_web/routex_web.dartpackage:routex_web/src/routing_context_wrapper.dartpackage:routex_web/src/routing_context_impl_base.dartpackage:routex_web/src/router_impl.dartpackage:routex_web/src/routing_context_impl.dartpackage:routex_web/src/route_impl.dartpackage:routex_core/routex_core.dartpackage:routex_core/src/bootstrap/router_binder.dartpackage:routex_core/src/bootstrap/router_bindable.dartpackage:routex_core/src/router.dartpackage:routex_core/src/routing_context.dartpackage:routex_core/src/web/http_server_request.dartdart:io

Health suggestions

Fix lib/src/route_impl.dart. (-2.96 points)

Analysis of lib/src/route_impl.dart reported 6 hints, including:

line 49 col 30: DO use curly braces for all flow control structures.

line 75 col 9: DO use curly braces for all flow control structures.

line 89 col 7: DO use curly braces for all flow control structures.

line 93 col 9: Use contains instead of indexOf

line 214 col 21: DO use curly braces for all flow control structures.

Fix lib/src/routing_context_impl_base.dart. (-1.49 points)

Analysis of lib/src/routing_context_impl_base.dart reported 3 hints:

line 20 col 37: Unnecessary new keyword.

line 21 col 44: Unnecessary new keyword.

line 104 col 11: DO use curly braces for all flow control structures.

Fix lib/src/routing_context_impl.dart. (-0.50 points)

Analysis of lib/src/routing_context_impl.dart reported 1 hint:

line 26 col 9: Use isEmpty instead of length

Fix additional 4 files with analysis or formatting issues.

Additional issues in the following files:

  • lib/routex_web.dart (Run dartfmt to format lib/routex_web.dart.)
  • lib/src/http_server_request_impl.dart (Run dartfmt to format lib/src/http_server_request_impl.dart.)
  • lib/src/router_impl.dart (Run dartfmt to format lib/src/router_impl.dart.)
  • lib/src/routing_context_wrapper.dart (Run dartfmt to format lib/src/routing_context_wrapper.dart.)

Maintenance issues and suggestions

Homepage URL doesn't exist. (-20 points)

At the time of the analysis the homepage field https://github.com/sidinaz/routex_web was unreachable.

Fix analysis_options.yaml.

The analyzer can't parse analysis_options.yaml.

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 routex_web.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Package is pre-v0.1 release. (-10 points)

While nothing is inherently wrong with versions of 0.0.*, it might mean that the author is still experimenting with the general direction of the API.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.6.0 <3.0.0
angel_framework ^2.1.1 2.1.1
daggerito >=1.0.8 <2.0.0 1.0.8
routex_core >=0.0.3 <1.0.0 0.0.3
Transitive dependencies
angel_container 1.1.0
angel_http_exception 1.1.0
angel_model 1.0.3
angel_route 3.1.0+1
charcode 1.1.3
code_buffer 1.0.1
collection 1.14.13
combinator 1.1.0
convert 2.1.1
crypto 2.1.5
dart2_constant 1.0.2+dart2
file 5.2.1
http2 1.0.0
http_parser 3.1.4
http_server 0.9.8+3
intl 0.16.1
logging 0.11.4
matcher 0.12.8
merge_map 1.0.2
meta 1.2.1
mime 0.9.6+3
mock_request 1.0.7
path 1.7.0
quiver 2.1.3
quiver_hashcode 2.0.0
recase 2.0.1 3.0.0
source_span 1.7.0
stack_trace 1.9.5
string_scanner 1.0.5
term_glyph 1.1.0
tuple 1.0.3
typed_data 1.2.0
uuid 2.2.0
Dev dependencies
test ^1.6.0