color_helper library

Constants

shades → const Map<ColorShade, int>
const {ColorShade.lightest : 50, ColorShade.secondLightest : 100, ColorShade.thirdLightest : 200, ColorShade.fourthLightest : 300, ColorShade.fifthLightest : 400, ColorShade.normal : 500, ColorShade.f…

Functions

darken(Color color, [double amount = .1]) Color
estimateBrightnessForColor(Color color) Brightness
Determines whether the given Color is Brightness.light or Brightness.dark. Copied from ThemeData.estimateBrightnessForColor(color) change kThreshold from 0.15 to 0.45 to accept more color with Brightness.dark
getDarkShades(Color color, [ColorShade minShade = ColorShade.fifthLightest]) List<Color>
get the dark shades version of current color,
getMaterialColor(Color color) MaterialColor
lighten(Color color, [double amount = .1]) Color

Enums

ColorShade