flex_color_scheme
9.0.0, released 2 months ago by rydmike.com
Builds matched light and dark ThemeData for Flutter with Material design themes and seed colors.
What it does
FlexColorScheme builds matched light and dark ThemeData for Flutter with support for seed-generated ColorSchemes, surface blends, and component theme settings. It provides custom color palettes and ensures complete color scheme wiring.
AI-written summary of version 9.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want robust Material Design themes with advanced seed-generated color schemes.
- You need matched light and dark themes with optional surface alpha blends.
- You want simplified property configurations for standard Flutter component themes.
Skip it when
- You are using a version of Flutter older than 3.47.0.
- You do not want to rely on external material and cupertino UI package decoupled requirements.
Strengths
- Extensive built-in palettes and color options.
- Advanced seed color generation options with customizable tone mapping.
- Comprehensive component theme defaults following Material 3 guidelines.
Weaknesses
- Requires Flutter 3.47.0 or higher.
- Major breaking changes between major versions require manual migration.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 4
Add flex_color_scheme to pubspec.yaml and import both flex_color_scheme and material_ui.
import 'package:flex_color_scheme/flex_color_scheme.dart';
import 'package:material_ui/material_ui.dart';
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: FlexThemeData.light(scheme: FlexScheme.mandyRed),
darkTheme: FlexThemeData.dark(scheme: FlexScheme.mandyRed),
themeMode: ThemeMode.system,
home: const MyHomePage(title: 'Flutter Demo Home Page'),
);
}
}Alternatives
Packages that do the same job and could replace flex_color_scheme.
- material_color_utilities
Algorithms and utilities for the Material Design 3 color system.
86Compare - dynamic_color
Create Material color schemes based on a platform's implementation of dynamic color.
83Compare - hugeicons
6,000+ free stroke-rounded SVG icons for Flutter with custom stroke width and color inheritance.
89Compare - sbb_design_system_mobile
Official SBB design system mobile UI components and theming for Flutter apps.
80Compare
Works with
Packages commonly used together with flex_color_scheme: ones it builds on, ones built on it, and its own family.
- material_uiflex_color_scheme depends on itOfficial Flutter Material UI library implementing Google’s Material Design system.
- cupertino_uiflex_color_scheme depends on itOfficial Flutter Cupertino design library implementing Apple HIG iOS and macOS user interfaces.
- flex_seed_schemeflex_color_scheme depends on itA flexible version of Flutter's ColorScheme.fromSeed supporting multiple seed colors and custom tones.
- flex_color_pickerSame familyCustomizable Flutter color picker widget with material palettes, custom swatches, and HSV wheel.