routex_core 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:core/routex_core.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_core: ^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_core/routex_core.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 9, 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_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_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/routing_context.dart. (-2.48 points)

Analysis of lib/src/routing_context.dart reported 5 hints:

line 25 col 9: Avoid shadowing type parameters.

line 29 col 14: Avoid shadowing type parameters.

line 45 col 16: Avoid shadowing type parameters.

line 47 col 16: Avoid shadowing type parameters.

line 51 col 10: Avoid shadowing type parameters.

Fix lib/src/container/container.dart. (-1.99 points)

Analysis of lib/src/container/container.dart reported 4 hints:

line 9 col 4: Avoid return types on setters.

line 12 col 3: Avoid return types on setters.

line 35 col 8: This function has a return type of 'bool', but doesn't end with a return statement.

line 79 col 5: This function has a return type of 'T', but doesn't end with a return statement.

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

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

line 2 col 8: Unused import: 'package:daggerito/daggerito.dart'.

Fix additional 6 files with analysis or formatting issues.

Additional issues in the following files:

  • lib/src/bootstrap/router_bindable.dart (Run dartfmt to format lib/src/bootstrap/router_bindable.dart.)
  • lib/src/bootstrap/router_binder.dart (Run dartfmt to format lib/src/bootstrap/router_binder.dart.)
  • lib/src/exceptions/response_status_exception.dart (Run dartfmt to format lib/src/exceptions/response_status_exception.dart.)
  • lib/src/handler.dart (Run dartfmt to format lib/src/handler.dart.)
  • lib/src/util/routing_execution.dart (Run dartfmt to format lib/src/util/routing_execution.dart.)
  • lib/src/web/http_server_request.dart (Run dartfmt to format lib/src/web/http_server_request.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_core.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
daggerito >=1.0.8 <2.0.0 1.0.8
Dev dependencies
test ^1.6.0