c_material
2.2.5, released 7 months ago by cmaterial.xyz
Provides a large set of predefined Color constants and Material 3 theming utilities for Flutter.
What it does
The package defines a MaterialColors class with around 140 static Color constants covering many shades. It also adds Material 3 light and dark seed‑based themes and semantic color extensions. Developers can reference colors directly without additional setup.
AI-written summary of version 2.2.5, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need quick access to a wide variety of predefined colors.
- You want built‑in Material 3 seed‑based light and dark themes.
- You prefer a zero‑dependency, compile‑time solution for color constants.
Skip it when
- You require dynamic or runtime color generation beyond the provided palette.
- You need advanced theming features like color blending or user‑customizable palettes.
- Package size or minimalism is a priority over having many colors.
Strengths
- Extensive palette of ~140 ready‑to‑use colors
- Simple static API – just import and use
- Includes Material 3 seed‑based themes and semantic extensions
Weaknesses
- Only static colors – no runtime generation
- Limited theming flexibility beyond provided themes
- Documentation is minimal and marketing‑heavy
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
import 'package:c_material/c_material.dart';
Container(
color: MaterialColors.blue,
);Alternatives
Packages that do the same job and could replace c_material.
- sbb_design_system_mobile
Official SBB design system mobile UI components and theming for Flutter apps.
80Compare - flex_color_scheme
Builds matched light and dark ThemeData for Flutter with Material design themes and seed colors.
89Compare - 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