zenrouter_file_annotation 0.4.7 copy "zenrouter_file_annotation: ^0.4.7" to clipboard
zenrouter_file_annotation: ^0.4.7 copied to clipboard

Shared annotation and structure for zenrouter file-based routing.

ZenRouter Logo

ZenRouter File Annotation #

Shared annotations and structure for zenrouter file-based routing.

This package contains the annotations (@ZenRoute, @ZenLayout, @ZenCoordinator) and helper classes used by the zenrouter_file_generator to generate type-safe routes.

pub package Test Codecov - zenrouter

Installation #

This package is usually added automatically when using zenrouter_file_generator.

dependencies:
  zenrouter_file_annotation: ^0.4.5

dev_dependencies:
  zenrouter_file_generator: ^0.4.5

Usage #

Use these annotations to define your routes and layouts:

import 'package:zenrouter_file_annotation/zenrouter_file_annotation.dart';

@ZenRoute()
class MyRoute extends _$MyRoute { ... }

@ZenLayout(type: LayoutType.stack)
class MyLayout extends _$MyLayout { ... }

// With query parameters
@ZenRoute(queries: ['search', 'page'])
class SearchRoute extends _$SearchRoute { ... }

See zenrouter_file_generator for complete documentation and usage examples.

0
likes
160
points
395
downloads

Publisher

verified publisherzennn.dev

Weekly Downloads

Shared annotation and structure for zenrouter file-based routing.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

More

Packages that depend on zenrouter_file_annotation