zrouter 0.0.1
zrouter: ^0.0.1 copied to clipboard
知乎 Fluter 全局路由
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add zrouterThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
zrouter: ^0.0.1Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:zrouter/annotations.dart';
import 'package:zrouter/resolver/interfaces.dart';
import 'package:zrouter/resolver/match_result.dart';
import 'package:zrouter/resolver/matcher.dart';
import 'package:zrouter/resolver/models.dart';
import 'package:zrouter/resolver/url_utils.dart';
import 'package:zrouter/resolver/utils.dart';
import 'package:zrouter/route_mappers.dart';
import 'package:zrouter/router.dart';