xo 1.0.5

  • Readme
  • Changelog
  • Installing
  • 43

Xo #

A mini web framework,include routing、global state manage

example see https://github.com/MiYogurt/xo/blob/master/web/main.dart

licenses #


1.0.0 #

  • Initial version, created by Stagehand

Use this package as a library

1. Depend on it

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

  xo: ^1.0.5

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:xo/debug.dart';
import 'package:xo/ployfill.dart';
import 'package:xo/render.dart';
import 'package:xo/router.dart';
import 'package:xo/store.dart';
import 'package:xo/store_link.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 Jan 19, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.0
  • pana: 0.13.4

Health issues and suggestions

Document public APIs. (-1 points)

154 out of 154 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.

Fix lib/render.dart. (-1 points)

Analysis of lib/render.dart reported 2 hints:

line 59 col 62: Avoid types as parameter names.

line 162 col 11: Don't explicitly initialize variables to null.

Format lib/debug.dart.

Run dartfmt to format lib/debug.dart.

Format lib/ployfill.dart.

Run dartfmt to format lib/ployfill.dart.

Fix additional 3 files with analysis or formatting issues.

Additional issues in the following files:

  • lib/router.dart (Run dartfmt to format lib/router.dart.)
  • lib/store.dart (Run dartfmt to format lib/store.dart.)
  • lib/store_link.dart (Run dartfmt to format lib/store_link.dart.)

Maintenance suggestions

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

For more information see the pub package layout conventions.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
js ^0.6.0 0.6.1+1
meta ^1.1.7 1.1.8
Dev dependencies
build ^1.1.1
build_config ^0.3.1
build_runner ^1.2.4
build_web_compilers ^1.1.0