just_color_picker 0.5.0
just_color_picker: ^0.5.0 copied to clipboard
A customizable HSV color picker with circular hue wheel, saturation-value panel, alpha slider, and color conversion utilities. No external dependencies.
0.5.0 #
- BREAKING: Controlled mode is strict. With
colorset, the picker shows onlycolor; a drag callsonColorChangedand the picker moves when the parent passes the color back. A parent that rejects or snaps a change is now respected. Migration: a parent that setscolorbut does not rebuild ononColorChanged(for example a dialog withoutsetState) should useinitialColorinstead. Its picker otherwise no longer moves. - fix:
onColorChangeEndreports the color the drag ended on. - chore: The
flutterconstraint is now>=3.35.3, the first Flutter that ships the Dart 3.9.2 thatsdk: ^3.9.2already required. The requirement did not change; it is now stated. CI runs at this floor and on the latest stable. - fix: Hue bar thumb stays at the right edge when dragged to or past it, instead of jumping to the left edge.
HueBar.onChangednow emits a hue in[0, 360): the right edge gives a value just below 360 (still red) rather than360. The 0.2.0 entry for this fix did not resolve it. - fix: Controlled mode keeps the hue when the parent echoes the emitted color back, including at saturation 0 and value 0 (and keeps saturation at value 0). A
colorequal to the picker's current color no longer rebuilds its HSV state; any othercolorstill does.
0.4.0 #
- BREAKING: Remove input widgets (
HexInput,RgbInput,HslInput,ColorTextField) — the library now provides values and utilities instead of UI inputs - BREAKING: Remove
ColorPreviewandColorInfoPanelwidgets - BREAKING: Remove
ColorPickerInputThemeDataandColorFormatmodels - BREAKING: Remove
showHexInput,showColorInfo,showPreview,showRgbInput,showHslInput,inputThemeparameters fromJustColorPicker - BREAKING:
colorToHsl()now returns({double h, double s, double l, int a})(alpha added) - feat:
colorToRgb()— convert Color to({int r, int g, int b, int a})record - feat:
rgbToColor()— convert RGB components to Color
0.3.0 #
- feat:
RgbInputwidget — R/G/B/A individual input fields (0–255) - feat:
HslInputwidget — H/S/L/A individual input fields (H: 0–360, S/L: 0–100) - feat:
ColorTextField— reusable base input component with bidirectional sync and revert mechanism - feat:
ColorPickerInputThemeData— theme system for styling all input fields (text style, label style, decoration, cursor color, spacing, field width) - feat:
HslColorFormat— format colors ashsl(210, 65%, 47%)strings - feat:
hslToColor()/colorToHsl()conversion utilities - feat:
showRgbInput,showHslInput,inputThemeparameters onJustColorPicker - feat:
showHsl,themeparameters onColorInfoPanel - feat: Input theme preset selector (Default / Rounded / Minimal / Bold) in playground example
- refactor:
HexInputnow usesColorTextFieldinternally, acceptsthemeparameter
0.2.0 #
- feat:
ColorPickerType— switch betweenwheel(circular hue ring) andbar(linear hue bar + square SV panel) layouts via thetypeparameter - feat:
HueBarwidget — horizontal hue spectrum slider, usable standalone or throughJustColorPicker - feat: Interactive playground example app with real-time controls for all picker options
- refactor: Extract shared
paintThumb()helper andkHueColorsconstant across all painters - fix: Hue bar thumb no longer jumps to the left edge when dragged to the far right
0.1.0 #
- feat: HSV circular hue wheel with embedded SV (saturation-value) panel
- feat: Alpha slider with checkerboard transparency background
- feat: HEX color code input with bidirectional sync
- feat: HEX and RGB color info display
- feat: Uncontrolled (
initialColor) and controlled (color) modes - feat: Customizable wheel diameter, ring width, and thumb size
- feat: Toggle visibility of alpha slider, HEX input, color info, and preview