MacosColorWell constructor
const
MacosColorWell({
- Key? key,
- required OnColorSelected onColorSelected,
- ColorPickerMode defaultMode = ColorPickerMode.wheel,
A control that displays a color value and lets the user change that color value.
When a MacosColorWell
is clicked, it opens the native macOS color panel,
which is an NSColorPanel
from the Swift Cocoa library.
Use a MacosColorWell when you want the user to be able to select a color.
Implementation
const MacosColorWell({
super.key,
required this.onColorSelected,
this.defaultMode = ColorPickerMode.wheel,
});