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.
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.
- xdg_icons
XDG theme icons for Flutter.
62Compare - random_color_scheme
Generates random light and dark Material Design color schemes respecting WCAG guidelines.
57Compare - derived_colors
Generate color variants and modifications for Flutter applications.
50Compare - pigment
Parse string colors into Flutter Color objects
44Compare
Works with
Packages commonly used together with flex_seed_scheme: ones it builds on, ones built on it, and its own family.
- material_uiflex_seed_scheme depends on itOfficial Flutter Material UI library implementing Google’s Material Design system.
- cupertino_uiflex_seed_scheme depends on itOfficial Flutter Cupertino design library implementing Apple HIG iOS and macOS user interfaces.
- flex_color_pickerBuilt on flex_seed_schemeCustomizable Flutter color picker widget with material palettes, custom swatches, and HSV wheel.
- flex_color_schemeBuilt on flex_seed_schemeBuilds matched light and dark ThemeData for Flutter with Material design themes and seed colors.