shadcn/components/form/color_picker
library
Functions
-
colorToHex(Color color, [bool showAlpha = true])
→ String
-
-
pickColorFromScreen(BuildContext context, [ColorHistoryStorage? storage])
→ Future<Color?>
-
-
showColorPicker({required BuildContext context, AlignmentGeometry alignment = AlignmentDirectional.topStart, AlignmentGeometry anchorAlignment = AlignmentDirectional.bottomStart, bool follow = true, Offset? offset, PopoverConstraint widthConstraint = PopoverConstraint.flexible, PopoverConstraint heightConstraint = PopoverConstraint.flexible, required ColorDerivative color, ValueChanged<ColorDerivative>? onColorChanged, bool showAlpha = true, ColorPickerMode initialMode = ColorPickerMode.rgb, bool allowPickFromScreen = true, ValueChanged<ColorDerivative>? onColorChangeEnd, ColorHistoryStorage? historyStorage})
→ Future<ColorDerivative>
-
-
showColorPickerDialog({required BuildContext context, required ColorDerivative color, ValueChanged<ColorDerivative>? onColorChanged, Widget? title, ColorPickerMode initialMode = ColorPickerMode.rgb, bool showAlpha = true, bool allowPickFromScreen = true, ColorHistoryStorage? historyStorage})
→ Future<ColorDerivative>
-