getx_route_generator 1.0.1
getx_route_generator: ^1.0.1 copied to clipboard
getx_route_generator is a code generation library based on build_runner, designed to generate a route table for pages using the GetX library. Say goodbye to manually writing route paths and GetPage mappings.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add getx_route_generator
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
getx_route_generator: ^1.0.1
Alternatively, your editor might support dart pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:getx_route_generator/getx_route_generator.dart';