get_typed_router 0.0.1 copy "get_typed_router: ^0.0.1" to clipboard
get_typed_router: ^0.0.1 copied to clipboard

Type-safe, annotation-based route generation for GetX. Annotate your pages with @AppRoute, run the CLI generator, and get a fully typed AppRouter with type-safe navigation and strongly-typed argument [...]

Use this package as an executable

Install it

You can install the package from the command line:

dart pub global activate get_typed_router

Use it

The package has the following executables:

$ get_typed_router

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add get_typed_router

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

dependencies:
  get_typed_router: ^0.0.1

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:get_typed_router/get_typed_router.dart';
1
likes
130
points
29
downloads

Documentation

Documentation
API reference

Publisher

unverified uploader

Weekly Downloads

Type-safe, annotation-based route generation for GetX. Annotate your pages with @AppRoute, run the CLI generator, and get a fully typed AppRouter with type-safe navigation and strongly-typed argument passing. No build_runner required.

Repository (GitHub)
View/report issues
Contributing

Topics

#getx #routing #code-generation #navigation #type-safe

License

MIT (license)

Dependencies

analyzer, flutter, path, yaml

More

Packages that depend on get_typed_router