universal_router 0.2.2 copy "universal_router: ^0.2.2" to clipboard
universal_router: ^0.2.2 copied to clipboard

outdated

A Flutter router package.

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add universal_router

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  universal_router: ^0.2.2

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:universal_router/pages/404.dart';
import 'package:universal_router/pages/async_loading_page.dart';
import 'package:universal_router/path_handler.dart';
import 'package:universal_router/route.dart';
import 'package:universal_router/route_data.dart';
import 'package:universal_router/route_information_parser.dart';
import 'package:universal_router/route_instance.dart';
import 'package:universal_router/route_path.dart';
import 'package:universal_router/router_delegate.dart';
import 'package:universal_router/ui/views/direct_interface/loading.dart';