r/FlutterDev • u/mdausmann • 16d ago
Discussion Good Workflow for design update for Flutter?
I want to collaborate on a design system overhaul with a member of my team. This person does not code, does not use claude and is non technical.
I have an existing flutter app. it has a design system but it's a bit of a mess. Originally came from a claude design session. app is mostly managed by Claude.
Claude design is deprecated or shutting down or whatever (now using claude online?)
Just looking for a good workflow for
- extracting the design system from an existing app
- collaborating on it with a bunch of sample screens so we can see the look across the app
- injecting the changed system back into the app without breaking it.
You guys know how to do this?
2
u/NycoHub 16d ago
The approach I'd take: get every color, text style and spacing value into one ThemeData plus a ThemeExtension for the custom bits, and make widgets read only from there. Then build one gallery screen that shows every component and a few real screens side by side. Your teammate reviews that screen and gives changes as values, not code. Golden tests on the gallery are a cheap way to see exactly what changed before merging. One gotcha: flutter test renders text with a placeholder font unless you load the real fonts, so the first goldens look odd.
2
u/Weak-Arrival-7811 14d ago
NycoHub's gallery screen is the right core. For the "extract it from the existing app" part, which is usually the messy bit:
Inventory first. Search lib/ for hard-coded values: `Color(0x`, `Colors.`, `fontSize:`, `EdgeInsets.` and `BorderRadius.circular(`. Every hit outside your theme file is a value that escaped the system, and there will be a lot of near-duplicates
Collapse them into a short list of named tokens (colours, text styles, spacing, radius) in ThemeData plus a ThemeExtension, so widgets only read names
Give your teammate the same names in Figma as variables, with light and dark as modes. They change values there and never touch code. Identical names on both sides is what stops the two drifting apart again
Export the Figma variables to JSON with a plugin and generate the Dart token file from it, so nobody copies hex codes by hand
Merge only when the gallery screen and a couple of golden tests look right
Step 1 also helps with your teammate: a page of near-identical greys explains the problem faster than any meeting.
2
u/paultallard 16d ago