Flutter CI Broke With 2288 Errors — How dart fix --apply Saved Us
What Happened
One morning, deploy-prod.yml started failing:
error • Use 'const' with the constructor to improve performance lib/pages/landing_page.dart:12:15 • prefer_const_constructors ... (2287 more errors)
2,288 errors. A 200-page Flutter Web app went from green to red overnight.
The cause: one line in analysis_options.yaml .
# Before: prefer_const_constructors : warning
# The commit that broke everything: prefer_const_constructors : error
One severity upgrade. 2,288 CI failures.
The Fix
Step 1: Immediate rollback — warning not error
# analysis_options.yaml linter : rules : prefer_const_constructors : warning # downgrade back
This unblocks CI, but 2,288 warnings remain as a time bomb. Anyone upgrading to error again will re-trigger the same failure.…