Skip to content
Articles
Article

19 Custom Lint Rules Killed Design-System Drift in Two Production Flutter Apps

by Sagar Ghag dev.to

3 min read

Colors.red in a Flutter widget. Sounds harmless. In a production app with a design system, it's a landmine: one developer uses Colors.red, another uses Theme.of(context).colorScheme.error, and six months later your app ships with two shades of red on the same screen and nobody can explain why. We had this problem across two production Flutter codebases (105K LOC and 59K LOC). Instead of writing a…

Forum

Questions about this, or something to add?

Discuss on the forum

Topics Drift

Report this · Wrote this? Claim it

FlutterX is supported by