Skip to content
pubscout

flex_color_picker

4.0.0, released 3 months ago by rydmike.com

Customizable Flutter color picker widget with material palettes, custom swatches, and HSV wheel.

WASM-readyUses material_ui
$ flutter pub add flex_color_picker
Source repository

What it does

FlexColorPicker provides a versatile color picker for Flutter apps, supporting Material primary and accent swatches, near black and white, custom swatches, and an HSV color wheel. It includes options for tonal palettes, opacity sliders, color code copy-paste, and built-in dialog methods.

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

Use it when

  • You need a comprehensive color picker widget in your Flutter application.
  • You want users to select colors from Material swatches, custom swatches, or an HSV color wheel.

Skip it when

  • Your app does not target Flutter 3.47 or later (required for v4.0.0).

Strengths

  • Supports multiple picker types including Material, custom swatches, and HSV wheel
  • Includes built-in dialog methods and copy-paste behavior with keyboard shortcuts
  • Highly customizable item shapes, sizes, and layout

Weaknesses

  • Requires Flutter 3.47.0 or higher and standalone material_ui/cupertino_ui dependencies

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
3

Add the dependency to pubspec.yaml and import the package. Requires Flutter 3.47.0+.

ColorPicker(
  color: screenPickerColor,
  onColorChanged: (Color color) => setState(() => screenPickerColor = color),
  width: 44,
  height: 44,
  borderRadius: 22,
  heading: Text('Select color', style: Theme.of(context).textTheme.headlineSmall),
  subheading: Text('Select color shade', style: Theme.of(context).textTheme.titleSmall),
)

Alternatives

Packages that do the same job and could replace flex_color_picker.

  • flutter_colorpicker

    Choose this if you need a simpler or different color picker implementation without the specific features or Material 3 tonal palette generation of FlexColorPicker.

Works with

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