canon_generator 0.21.0 copy "canon_generator: ^0.21.0" to clipboard
canon_generator: ^0.21.0 copied to clipboard

Code generator for canon — emits the typed Screen, Hop, and verb surface from the spec enum.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'nav.dart';

void main() => runApp(const _App());

class _App extends StatelessWidget {
  const _App();

  @override
  Widget build(BuildContext context) {
    // Wire canon's delegate into a router app — that's the entire integration.
    return MaterialApp.router(routerDelegate: Screen.delegate);
  }
}
1
likes
0
points
760
downloads

Publisher

unverified uploader

Weekly Downloads

Code generator for canon — emits the typed Screen, Hop, and verb surface from the spec enum.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

analyzer, build, canon, source_gen

More

Packages that depend on canon_generator