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.
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.
50Compare
Works with
Packages commonly used together with flex_color_picker: ones it builds on, ones built on it, and its own family.
- material_uiflex_color_picker depends on itOfficial Flutter Material UI library implementing Google’s Material Design system.
- cupertino_uiflex_color_picker depends on itOfficial Flutter Cupertino design library implementing Apple HIG iOS and macOS user interfaces.
- flex_seed_schemeflex_color_picker depends on itA flexible version of Flutter's ColorScheme.fromSeed supporting multiple seed colors and custom tones.
- flex_color_schemeSame familyBuilds matched light and dark ThemeData for Flutter with Material design themes and seed colors.
- html_editor_enhancedBuilt on flex_color_pickerHTML rich text editor for Android, iOS, and Web using the Summernote library
- image_editor_plusBuilt on flex_color_pickerImage editor plugin with filters, drawing, text, and emojis.
- html_editor_plusBuilt on flex_color_pickerHTML rich text editor for Android, iOS, and Web using Summernote