Skip to content
pubscout

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.

WASM-ready
$ flutter pub add c_material
Source repository

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.