rest_router 0.1.0 rest_router: ^0.1.0 copied to clipboard
A simple flutter router that parses path parameters and exposes a builder to use them inline.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add rest_router
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
rest_router: ^0.1.0
Alternatively, 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:rest_router/parser.dart';
import 'package:rest_router/rest_navigator.dart';
import 'package:rest_router/route_generator.dart';
import 'package:rest_router/transition_type.dart';