Skip to content
pubscout

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.

Flutter FavoriteWASM-readyUses material_uiRock solid
$ flutter pub add flex_color_scheme
Source repository

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.

Works with

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