Skip to content
pubscout

flutter_color

2.1.1, released 3 months ago by serge.software

Flutter plugin for working with color schemes like hex, hsl, xyz, and cielab.

WASM-ready
$ flutter pub add flutter_color
Source repository

What it does

Provides extensions and classes to create, convert, compare, and edit colors using various color systems like hex, HSL, XYZ, and CIE-LAB. It also includes methods to make colors lighter or darker, and mix colors.

AI-written summary of version 2.1.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to parse or export hex color strings.
  • You need to work with HSL, XYZ, or CIE-LAB color models.
  • You want to lighten, darken, or mix colors programmatically.

Skip it when

  • You only need standard Flutter Color constructors.
  • You require advanced dynamic color theming based on Material You algorithms.

Strengths

  • Supports multiple color spaces (Hex, HSL, XYZ, Cielab).
  • Handy extension methods for lightening, darkening, and mixing colors.

Weaknesses

  • Limited documentation beyond basic README examples.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
HexColor('000000');
HslColor(164, 100, 88);
Color(0xFF000000).lighter(100);

Alternatives

Packages that do the same job and could replace flutter_color.

  • dynamic_color

    Create Material color schemes based on a platform's implementation of dynamic color.

  • color_blindness

    Simulate color blindness across Material 3 color schemes or individual colors in Flutter.

  • dynamic_system_colors

    Create Material color schemes based on the platform's dynamic color implementation.

  • oklch

    Encode, decode, and pick colors using the OKLCH color space in Flutter apps.