EaseXColors class

🎨 EaseX Color Utilities

Constructors

EaseXColors()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

analogous(Color color, {bool clockwise = true}) → Color
Get analogous color (adjacent on color wheel)
blend(Color color1, Color color2, double ratio) → Color
Blend two colors
complementary(Color color) → Color
Get complementary color
createGradient(Color color, {Alignment begin = Alignment.topLeft, Alignment end = Alignment.bottomRight, List<double>? stops}) → LinearGradient
Create gradient from single color
darken(Color color, [double percent = 0.1]) → Color
Darken a color by percentage
fromHex(String hex) → Color
Convert hex string to Color
generateMaterialPalette(Color baseColor) → Map<String, Color>
Material Design color palette generator
getContrastingTextColor(Color color) → Color
Get contrasting text color (black or white)
isDark(Color color) → bool
Check if color is dark
isLight(Color color) → bool
Check if color is light
lighten(Color color, [double percent = 0.1]) → Color
Lighten a color by percentage
random({bool bright = false}) → Color
Generate random color
randomPastel() → Color
Generate random pastel color
toHex(Color color, {bool includeAlpha = false}) → String
Convert Color to hex string
triadic(Color color) → List<Color>
Get triadic colors (3 colors evenly spaced on color wheel)
withOpacity(Color color, double opacity) → Color
Adjust color opacity

Constants

amber → const Color
black → const Color
blue → const Color
blueGrey → const Color
brown → const Color
cyan → const Color
facebook → const Color
Social media brand colors
green → const Color
grey → const Color
indigo → const Color
instagram → const Color
lime → const Color
linkedin → const Color
orange → const Color
pink → const Color
pinterest → const Color
purple → const Color
red → const Color
reddit → const Color
snapchat → const Color
teal → const Color
tiktok → const Color
transparent → const Color
Common color constants
twitter → const Color
whatsapp → const Color
white → const Color
yellow → const Color
youtube → const Color