Skip to content
pubscout

flex_seed_scheme

5.0.1, released 3 months ago by rydmike.com

A flexible version of Flutter's ColorScheme.fromSeed supporting multiple seed colors and custom tones.

WASM-readyUses material_uiSingle maintainer
$ flutter pub add flex_seed_scheme
Source repository

What it does

FlexSeedScheme extends ColorScheme.fromSeed by allowing separate seed key colors for primary, secondary, tertiary, error, and neutral palettes. It also supports custom chroma limits, tone mappings, and Material 3 dynamic scheme variants.

AI-written summary of version 5.0.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need separate seed colors for primary, secondary, and tertiary palettes instead of a single seed color.
  • You want to customize chroma and tone mapping behavior in generated ColorSchemes.
  • You need monochrome seed colors to produce correct greyscale palettes.

Skip it when

  • You are satisfied with the default single-seed behavior of Flutter's built-in ColorScheme.fromSeed.
  • You do not use Material 3 color systems.

Strengths

  • Supports up to six separate seed key colors for fine-grained color generation.
  • Provides multiple predefined FlexTones configurations like vivid, highContrast, and material.
  • Allows custom chroma and tone mappings in the HCT color space.

Weaknesses

  • Requires learning additional custom configuration classes like FlexTones.
  • Relies heavily on Material 3 design paradigms.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
4

Add the package to pubspec.yaml and import it where you configure your MaterialApp themes.

import 'package:flex_seed_scheme/flex_seed_scheme.dart';

final ColorScheme schemeLight = SeedColorScheme.fromSeeds(
  brightness: Brightness.light,
  primaryKey: Color(0xFF6750A4),
  secondaryKey: Color(0xFF3871BB),
  tertiaryKey: Color(0xFF6CA450),
  tones: FlexTones.vivid(Brightness.light),
);

Alternatives

Packages that do the same job and could replace flex_seed_scheme.

Works with

Packages commonly used together with flex_seed_scheme: ones it builds on, ones built on it, and its own family.