Available color picker widgets
masterThe flutter_colorpicker package provides several different widget types depending on the desired user experience:
ColorPicker: A versatile picker supporting HSV(HSB), HSL, RGB, and Material color modes.MaterialPicker: A picker styled with Material Design principles. It includes ashowLabeloption (primarily for portrait mode).BlockPicker: A picker that presents colors as discrete blocks.MultipleChoiceBlockPicker: A picker designed for selecting multiple colors from a predefined list usingpickerColorsandonColorsChanged.
// Use ColorPicker:
ColorPicker(
pickerColor: pickerColor,
onColorChanged: changeColor,
)
// Use MaterialPicker:
MaterialPicker(
pickerColor: pickerColor,
onColorChanged: changeColor,
showLabel: true,
)
// Use BlockPicker:
BlockPicker(
pickerColor: currentColor,
onColorChanged: changeColor,
)
// Use MultipleChoiceBlockPicker:
MultipleChoiceBlockPicker(
pickerColors: currentColors,
onColorsChanged: changeColors,
)