ColorPalette constructor

ColorPalette({
  1. Color primary = Colors.deepPurple,
  2. Color primaryAccent = Colors.deepPurpleAccent,
  3. Color primaryContrast = Colors.purple,
  4. Color primaryContrastImportant = Colors.purpleAccent,
  5. Color primarySecondaryContrast = Colors.deepPurple,
  6. Color primarySecondaryContrastImportant = Colors.deepPurpleAccent,
  7. Color secondary = Colors.deepOrange,
  8. Color secondaryAccent = Colors.deepOrangeAccent,
  9. Color secondaryContrast = Colors.orange,
  10. Color secondaryContrastImportant = Colors.orangeAccent,
  11. Color secondaryPrimaryContrast = Colors.deepOrange,
  12. Color secondaryPrimaryContrastImportant = Colors.deepOrangeAccent,
  13. Color lightBg = Colors.white,
  14. Color lightBgAccent = Colors.white70,
  15. Color lightFg = Colors.white,
  16. Color lightFgAccent = Colors.white60,
  17. Color lightContrast = Colors.grey,
  18. Color lightContrastImportant = ConstantColors.gray800,
  19. Color lightPrimaryContrast = Colors.white70,
  20. Color lightPrimaryContrastImportant = Colors.white,
  21. Color lightSecondaryContrast = Colors.white70,
  22. Color lightSecondaryContrastImportant = Colors.white,
  23. Color lightImageContrast = Colors.white70,
  24. Color lightImageContrastImportant = Colors.white,
  25. Color darkBg = Colors.black,
  26. Color darkBgAccent = ConstantColors.gray1000,
  27. Color darkFg = ConstantColors.gray800,
  28. Color darkFgAccent = ConstantColors.gray700,
  29. Color darkContrast = Colors.white70,
  30. Color darkContrastImportant = Colors.white,
  31. Color darkPrimaryContrast = ConstantColors.gray800,
  32. Color darkPrimaryContrastImportant = Colors.black,
  33. Color darkSecondaryContrast = ConstantColors.gray800,
  34. Color darkSecondaryContrastImportant = Colors.black,
  35. Color darkImageContrast = ConstantColors.gray800,
  36. Color darkImageContrastImportant = Colors.black,
})

Implementation

ColorPalette({
  this.primary = Colors.deepPurple,
  this.primaryAccent = Colors.deepPurpleAccent,
  this.primaryContrast = Colors.purple,
  this.primaryContrastImportant = Colors.purpleAccent,
  this.primarySecondaryContrast = Colors.deepPurple,
  this.primarySecondaryContrastImportant = Colors.deepPurpleAccent,

  this.secondary = Colors.deepOrange,
  this.secondaryAccent = Colors.deepOrangeAccent,
  this.secondaryContrast = Colors.orange,
  this.secondaryContrastImportant = Colors.orangeAccent,
  this.secondaryPrimaryContrast = Colors.deepOrange,
  this.secondaryPrimaryContrastImportant = Colors.deepOrangeAccent,

  this.lightBg = Colors.white,
  this.lightBgAccent = Colors.white70,
  this.lightFg = Colors.white,
  this.lightFgAccent = Colors.white60,
  this.lightContrast = Colors.grey,
  this.lightContrastImportant = ConstantColors.gray800,
  this.lightPrimaryContrast = Colors.white70,
  this.lightPrimaryContrastImportant = Colors.white,
  this.lightSecondaryContrast = Colors.white70,
  this.lightSecondaryContrastImportant = Colors.white,
  this.lightImageContrast = Colors.white70,
  this.lightImageContrastImportant = Colors.white,

  this.darkBg = Colors.black,
  this.darkBgAccent = ConstantColors.gray1000,
  this.darkFg = ConstantColors.gray800,
  this.darkFgAccent = ConstantColors.gray700,
  this.darkContrast = Colors.white70,
  this.darkContrastImportant = Colors.white,
  this.darkPrimaryContrast = ConstantColors.gray800,
  this.darkPrimaryContrastImportant = Colors.black,
  this.darkSecondaryContrast = ConstantColors.gray800,
  this.darkSecondaryContrastImportant = Colors.black,
  this.darkImageContrast = ConstantColors.gray800,
  this.darkImageContrastImportant = Colors.black,
});