uloc 1.1.2
uloc: ^1.1.2 copied to clipboard
A lifecycle-aware routing library for Flutter. Supports named routes, Provider integration, code generation, and page lifecycle hooks like onInit, onReady, and onDispose.
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate uloc
Use it
The package has the following executables:
$ uloc
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add uloc
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
uloc: ^1.1.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:uloc/uloc.dart';