New
0.0.47
0.0.47
- Bug fixes
- Brought back color picker history panel
- Fixed color input button without label not showing
- Color picker popover now invokes onChanged after popover closed
- Color picker eye dropper now closes popover when eye dropping and then reopened back when done
0.0.46
-
Breaking changes
- Color picker refactor and file layout
- Most color picker code moved from a single
lib/src/components/form/color_picker.dartinto multiple focused files underlib/src/components/form/color/solid/. - If you were deep-importing internals, update your imports to the new
paths. Importing via the main barrel
(
package:shadcn_flutter/shadcn_flutter.dart) continues to work but the old internal path is removed.
- Most color picker code moved from a single
- API renames (ColorPicker / ColorInput)
allowPickFromScreen➜enableEyeDropperonPickFromScreen➜onEyeDropperRequested- Add the new callback only when you need to override the built-in prompt behavior (popover closes, then eye-dropper starts).
- Internal widgets/classes
HSVColorPickerArea/HSLColorPickerAreareplaced by exportedHSVColorSlider/HSLColorSlider.- Checkerboard painter consolidated as
AlphaPainter(replaces ad-hoc checkboard usage in the old file). - Old helper composites like
ColorPickerSet,MiniColorPickerSet, and popup/dialog variants were removed in favor ofColorInput+ColorPickerwith prompt modes.
- Color picker refactor and file layout
-
Color system and utilities
- Reorganized existing color utilities under the new color module; no
functional changes to
ColorDerivativeorcolorToHex. Added gradient types (linear, radial, sweep) for future composition.
- Reorganized existing color utilities under the new color module; no
functional changes to
-
Color Picker
- Replaced legacy ColorPicker implementation with a new slider-based picker
using dedicated HSV/HSL painters and alpha checkerboard. Supports live
editing via
onChanging/onChangedand consistent display using an effective in-progress value. - Added modes for RGB, HSV, HSL, and HEX; optional alpha controls;
horizontal/vertical orientation; spacing and slider size theming via
ColorPickerTheme.
- Replaced legacy ColorPicker implementation with a new slider-based picker
using dedicated HSV/HSL painters and alpha checkerboard. Supports live
editing via
-
Color Input
- New
ColorInputwidget withColorInputControllerand theming. Integrates popover/dialog prompting, optional HEX label display, orientation, and EyeDropper integration.ControlledColorInputvariant for form integration.
- New
-
Eye Dropper and History
- Added screen color picker (
pickColorFromScreenandColorPickingLayer) with magnified preview and label; addedRecentColorsScopeandColorHistoryGridto persist and pick previously sampled colors.
- Added screen color picker (
-
API exports
- Public exports updated to include color utilities, ColorPicker, ColorInput, EyeDropper, History, and slider widgets.
-
i18n and formatting
- Added
colorPickerTabHEXlocalization key andTextInputFormatters.hex(supports optional hash prefix) for safe HEX input. If you provide a custom localization, add this new key.
- Added