← Back to posts Cover image for Flutter Design System Overhaul: A Workflow for Non-Technical Collaboration

Flutter Design System Overhaul: A Workflow for Non-Technical Collaboration

· 4 min read
Weekly Digest

The Flutter news you actually need

No spam, ever. Unsubscribe in one click.

Chris
By Chris

Collaborating on a Flutter design system with a non-technical teammate is rarely a code problem. It’s a review problem. If every color, radius, and text style lives inside dozens of widgets, your teammate can only comment on pixels, not decisions.

A better workflow is to make the design system visible, centralized, and testable.

Create one source of truth

Move visual decisions into ThemeData and a ThemeExtension. Widgets should read from these values instead of hard-coding styles.

@immutable
class AppDesign extends ThemeExtension<AppDesign> {
  const AppDesign({
    required this.surfaceMuted,
    required this.textSecondary,
    required this.radius,
    required this.gap,
  });

  final Color surfaceMuted;
  final Color textSecondary;
  final double radius;
  final double gap;

  @override
  AppDesign copyWith({
    Color? surfaceMuted,
    Color? textSecondary,
    double? radius,
    double? gap,
  }) {
    return AppDesign(
      surfaceMuted: surfaceMuted ?? this.surfaceMuted,
      textSecondary: textSecondary ?? this.textSecondary,
      radius: radius ?? this.radius,
      gap: gap ?? this.gap,
    );
  }

  @override
  AppDesign lerp(AppDesign? other, double t) {
    if (other == null) return this;
    return AppDesign(
      surfaceMuted: Color.lerp(surfaceMuted, other.surfaceMuted, t)!,
      textSecondary: Color.lerp(textSecondary, other.textSecondary, t)!,
      radius: lerpDouble(radius, other.radius, t)!,
      gap: lerpDouble(gap, other.gap, t)!,
    );
  }
}

Then expose it through the app theme:

ThemeData buildAppTheme() {
  return ThemeData(
    useMaterial3: true,
    colorScheme: ColorScheme.fromSeed(seedColor: const Color(0xFF3563E9)),
    extensions: const [
      AppDesign(
        surfaceMuted: Color(0xFFF4F6F8),
        textSecondary: Color(0xFF667085),
        radius: 12,
        gap: 16,
      ),
    ],
  );
}

A widget can now use those tokens:

final design = Theme.of(context).extension<AppDesign>()!;

Container(
  padding: EdgeInsets.all(design.gap),
  decoration: BoxDecoration(
    color: design.surfaceMuted,
    borderRadius: BorderRadius.circular(design.radius),
  ),
  child: Text(
    'Card title',
    style: Theme.of(context).textTheme.bodyLarge?.copyWith(
          color: design.textSecondary,
        ),
  ),
)

This gives your non-technical collaborator a clear target: “Change the muted surface color” is easier to review than “Change this background in this one screen.”

Create one screen that shows every core component and state: buttons, cards, inputs, badges, typography, empty states, and loading states.

class DesignGallery extends StatelessWidget {
  const DesignGallery({super.key});

  @override
  Widget build(BuildContext context) {
    final theme = Theme.of(context);
    final design = theme.extension<AppDesign>()!;

    return Scaffold(
      appBar: AppBar(title: const Text('Design Gallery')),
      body: ListView(
        padding: EdgeInsets.all(design.gap),
        children: [
          const Text('Primary button'),
          const SizedBox(height: 8),
          FilledButton(
            onPressed: () {},
            child: const Text('Confirm'),
          ),
          const SizedBox(height: design.gap),
          const Text('Secondary text'),
          const SizedBox(height: 4),
          Text(
            'This uses the shared muted text token.',
            style: theme.textTheme.bodyMedium?.copyWith(
              color: design.textSecondary,
            ),
          ),
        ],
      ),
    );
  }
}

Ask your teammate to review this screen, not the whole app. They can annotate screenshots or mark up the gallery in a design tool. The important rule is simple: feedback changes tokens or components, not individual screens.

Add golden tests

Golden tests turn visual consistency into a safety net. Once the gallery looks approved, capture it.

void main() {
  testWidgets('Design gallery matches approved visual', (tester) async {
    await tester.pumpWidget(
      MaterialApp(
        theme: buildAppTheme(),
        home: const DesignGallery(),
      ),
    );

    await expectLater(
      find.byType(DesignGallery),
      matchesGoldenFile('goldens/design_gallery.png'),
    );
  });
}

Run:

flutter test --update-goldens

After that, every change either matches the approved visual or fails review. This is especially useful when a designer says, “Make the card spacing a little tighter.” You update AppDesign.gap, run the tests, and see exactly which components changed.

Keep the collaboration practical

A good review request should include:

  • Where the change belongs: token, component, or layout.
  • What should change: color, radius, spacing, typography, or state behavior.
  • Which states matter: default, pressed, disabled, error, loading.
  • What “done” looks like: updated gallery screenshot and passing goldens.

Common mistakes are easy to avoid:

  • Letting designers edit screens directly instead of the design system.
  • Hiding visual decisions inside widgets.
  • Skipping disabled, error, and loading states in the gallery.
  • Treating golden tests as brittle instead of using them as a visual contract.

The goal is not to make your non-technical teammate write Flutter code. The goal is to give them a clean surface to review: a gallery, shared tokens, and tests that protect the result.

This blog is produced with the assistance of AI by a human editor. Learn more

Related Posts

Cover image for Choosing the Right Storage for Flutter: Beyond SharedPreferences for Persistent Data

Choosing the Right Storage for Flutter: Beyond SharedPreferences for Persistent Data

Developers frequently struggle with persistent storage in Flutter, especially when dealing with OS-level backups and app reinstalls. This post will clarify the nuances of different storage solutions like `SharedPreferences`, `path_provider`, and `flutter_secure_storage`, focusing on how to correctly manage data lifetimes (per-install vs. per-user) and avoid issues like device IDs migrating to new phones or data being unexpectedly backed up.

Cover image for Optimizing Flutter UI Performance: Solving `ImageFiltered` Lag and Smooth Blurring

Optimizing Flutter UI Performance: Solving `ImageFiltered` Lag and Smooth Blurring

Flutter's `ImageFiltered` can cause significant lag when blurring large or frequently changing content like text. This post will explain the performance bottlenecks, provide solutions like caching blurred outputs with `RepaintBoundary` or `SnapshotWidget`, and offer practical tips to ensure smooth UI effects without sacrificing frame rates.