zenrouter_file_generator 0.4.8
zenrouter_file_generator: ^0.4.8 copied to clipboard
A code generator for file-based routing in Flutter using zenrouter. Generate type-safe routes from your file/directory structure, similar to Next.js or Nuxt.js.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add zenrouter_file_generatorThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
zenrouter_file_generator: ^0.4.8Alternatively, 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:zenrouter_file_generator/zenrouter_file_generator.dart';