canon_generator 0.21.0
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);
}
}