zenrouter_file_generator 0.4.8 copy "zenrouter_file_generator: ^0.4.8" to clipboard
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_generator

This 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.8

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:zenrouter_file_generator/zenrouter_file_generator.dart';
6
likes
140
points
580
downloads

Publisher

verified publisherzennn.dev

Weekly Downloads

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.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

analyzer, build, dart_style, flutter, glob, source_gen, zenrouter_file_annotation

More

Packages that depend on zenrouter_file_generator