flutter_color_picker_plus 2.2.1 copy "flutter_color_picker_plus: ^2.2.1" to clipboard
flutter_color_picker_plus: ^2.2.1 copied to clipboard

HSV(HSB)/HSL/RGB/Material/Temperature color picker inspired by all the good design for your amazing flutter apps.

flutter_colorpicker #

pub package badge

HSV(HSB)/HSL/RGB/Material color picker inspired by all the good design for your amazing flutter apps.
Adorable color pickers out of the box with highly customized widgets to all developers' needs.

Since the original creator doesn't upgrade or respond to issues, I decided to fork it and maintain it.
This package didn't receive an update for over 2 years.

Credits mainly go to him: This is a fork of flutter_colorpicker by mchome

Getting Started #

Use it in [showDialog] widget:

// create some values
Color pickerColor = Color(0xff443a49);
Color currentColor = Color(0xff443a49);

// ValueChanged<Color> callback
void changeColor(Color color) {
  setState(() => pickerColor = color);
}

// raise the [showDialog] widget
showDialog(
  context: context,
  child: AlertDialog(
    title: const Text('Pick a color!'),
    content: SingleChildScrollView(
      child: ColorPicker(
        pickerColor: pickerColor,
        onColorChanged: changeColor,
      ),
      // Use Material color picker:
      //
      // child: MaterialPicker(
      //   pickerColor: pickerColor,
      //   onColorChanged: changeColor,
      //   showLabel: true, // only on portrait mode
      // ),
      //
      // Use Block color picker:
      //
      // child: BlockPicker(
      //   pickerColor: currentColor,
      //   onColorChanged: changeColor,
      // ),
      //
      // child: MultipleChoiceBlockPicker(
      //   pickerColors: currentColors,
      //   onColorsChanged: changeColors,
      // ),
    ),
    actions: <Widget>[
      ElevatedButton(
        child: const Text('Got it'),
        onPressed: () {
          setState(() => currentColor = pickerColor);
          Navigator.of(context).pop();
        },
      ),
    ],
  ),
)

preview SlidePicker

Details in example folder.

8
likes
150
points
173
downloads

Publisher

verified publisherhdashboards.app

Weekly Downloads

HSV(HSB)/HSL/RGB/Material/Temperature color picker inspired by all the good design for your amazing flutter apps.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_color_picker_plus