flutter_lighthouse 0.1.0
flutter_lighthouse: ^0.1.0 copied to clipboard
Lighthouse for Flutter — drop in, tap once, and it auto-walks every route, scores performance 0–100, and emits actionable findings.
0.1.0 #
Initial release — "Lighthouse for Flutter".
- One-call audit:
Lighthouse.audit(context)+LighthouseOverlaydev button. - Auto-walk engine for named routes (push → dwell → scroll → collect → pop).
- Metric collectors: frame build/raster timing, jank ratio, FPS, route load
latency, memory delta, oversized-image detection, widget rebuild storms
(via
LighthouseProbe). - Chrome-Lighthouse-style log-normal scoring (0–100 overall + Performance /
Responsiveness / Memory / Best-Practices sub-scores, per route). Fully
deterministic; spec in
SCORING_SPEC.md. - Severity-ranked findings with recommendations and code examples.
- Automatic, accurate oversized-image detection via
debugOnPaintImage(decoded-vs-displayed size); repeated paints collapse into one finding. - Cross-route attribution fixes in the walk engine: transitions settle outside the collection window so an outgoing route's dying rebuilds/frames are never blamed on the next screen (validated on-device — 0 false positives).
- Example "bad app" demonstrating rebuild storm, oversized images, and UI-thread jank; on-device audit catches all three.
- Exports: JSON, Markdown, HTML. In-app report screen with animated gauges.
- 51 tests;
flutter analyzeclean;dart pub publish --dry-run0 warnings.
