editors/nice_editors6 library

Classes

NiceColorPalette
Color palette generator with harmony modes and presets.
NiceGradientPicker
Gradient editor with type, angle, and color stops.
NiceGradientStop
A color stop in the gradient.
NiceGradientValue
Gradient definition.
NiceHtmlEditor
Rich text editor with customizable toolbar.
NiceSimpleCodeEditor
Lightweight code editor with line numbers and syntax-aware monospace.

Enums

NiceColorHarmony
Color harmony mode.
NiceColorPreset
Preset palette style.
NiceGradientType
Gradient type.
NiceHtmlEditorCommand
Toolbar command for the editor.

Functions

contrastRatio(Color a, Color b) → double
Calculate WCAG contrast ratio between two colors.
generateHarmony(Color base, NiceColorHarmony mode, {int count = 5}) → List<Color>
Generate harmony colors from a base hue.
randomPalette(int count, {NiceColorPreset? preset}) → List<Color>
Generate random palette.
wcagLevel(Color fg, Color bg) → String
Returns 'AAA', 'AA', or 'Fail'.