flow_sketch 0.2.0 copy "flow_sketch: ^0.2.0" to clipboard
flow_sketch: ^0.2.0 copied to clipboard

Generate Mermaid flowcharts and screen-transition maps from Dart/Flutter source (control flow, go_router, auto_route, Navigator) via a simple CLI.

example/README.md

flow_sketch examples #

Each file is a minimal, self‑contained sample (dummy classes are used to avoid a Flutter dependency).

File What it shows Try it
sample.dart if / for / while / return, closure expansion flow_sketch -f example/sample.dart -m calculate
annotations.dart @flow / @flow-label / @flow-ignore flow_sketch -f example/annotations.dart -m login --depth 0
multifile/ Expand a function from another file via --depth flow_sketch -f example/multifile/app.dart -m run --depth 1
widget_app/ Follow runApp → a widget's build() flow_sketch -f example/widget_app/app.dart -m main --depth 3
sample_router.dart go_router routes and transitions flow_sketch -f example/sample_router.dart --mode route
sample_autoroute.dart auto_route routes and transitions flow_sketch -f example/sample_autoroute.dart --mode route
sample_navigation.dart BottomNavigationBar / Drawer / Navigator flow_sketch -f example/sample_navigation.dart --mode route
tabbed_app.dart Tabs + transitions from each tab flow_sketch -f example/tabbed_app.dart --mode screen
screen_map.dart Screen‑map grouped by screen class flow_sketch -f example/screen_map.dart --mode screen

Add --open to view it in the browser:

flow_sketch -f example/screen_map.dart --mode screen --open
0
likes
160
points
26
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Generate Mermaid flowcharts and screen-transition maps from Dart/Flutter source (control flow, go_router, auto_route, Navigator) via a simple CLI.

Repository (GitHub)
View/report issues

Topics

#flowchart #mermaid #flutter #visualization #cli

License

MIT (license)

Dependencies

analyzer, args, path

More

Packages that depend on flow_sketch