cerebro 0.2.0
cerebro: ^0.2.0 copied to clipboard
Headless screenshots, semantics, tap-target and contrast checks, and a tap-by-tap navigation map for Flutter apps, under flutter test. Built for coding agents.
0.2.0 #
- Navigation map: pushes to unnamed Navigator 1.0 routes are matched to a
captured screen by a labels fingerprint (
resolved_by_fingerprint,to_fingerprinton the edge,fingerprintper screen); routes that only open overlays on themselves are drawn in their own dashed row instead of piling up in the first column. erroredges carryerror_stack(app frames first).- Contrast: text with no glyph pixels in its rect (under an opaque bottom
bar or sheet, or clipped) is
not visibleincontrast_not_measurable, counted incontrast_coverage.not_visibleandnot_visible_texts. - Tap targets: an unlabeled checkbox/radio/switch carries a
hintwith the one-target fix (*ListTile). - Lint:
scroll-from-listener(jumpTo/animateTo in a listener withouthasClients) andgo-route-builder-transitions(GoRoute(builder:)with nopageBuilderand noPageTransitionsThemein the project). fonts:accepts package asset keys (packages/<pkg>/fonts/x.ttf), resolved through.dart_tool/package_config.json.--configoutside the project: a relativeout_dirnow resolves against the project root, not the config file's folder.- Test guarding the shipped skills' frontmatter (valid YAML,
name,description).
0.1.0 #
First public release, formerly ui_map.
init,routes,capturefor go_router apps andMaterialApp.routes(Navigator 1.0) apps, underflutter test: no emulator, no device.- Per screen: PNG, semantics dump, tap targets below the platform minimum (clipped targets listed apart), WCAG contrast per text run with occluded texts listed apart, text without a font family, layout exceptions.
- Devices, themes, platforms, text scales, locales, keyboard-open captures, URL variants and factory scenarios.
--explore: taps every control and records push / pop / go / overlay / state_change / no_observed_effect / error edges, with motion evidence (transition,transition_ms,self_transition).- Prototype sheets for
/__proto/<name>routes (PROTO.md). - Navigation map picture:
map.dotalways,map.png/map.svgwhen Graphviz is installed; one node per route with its screenshot. baseline,diff,checkfor regressions;lintwith ten rules.