canon_generator 0.41.0 copy "canon_generator: ^0.41.0" to clipboard
canon_generator: ^0.41.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 'welcome.dart';

void main() {
  Screen.resolver = (_) => Screen.goHome();
  runApp(const _App());
}

class _App extends StatelessWidget {
  const _App();
  @override
  Widget build(BuildContext context) =>
      MaterialApp.router(routerDelegate: Screen.manager);
}
1
likes
140
points
699
downloads

Documentation

API reference

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

BSD-3-Clause (license)

Dependencies

analyzer, build, canon, canon_codec, identifiable, source_gen

More

Packages that depend on canon_generator