SmoothColorsThemeExtension class

Inheritance

Constructors

SmoothColorsThemeExtension({required Color primaryUltraBlack, required Color primaryBlack, required Color primaryDark, required Color primarySemiDark, required Color primaryTone, required Color primaryNormal, required Color primaryAccent, required Color primaryMedium, required Color primaryLight, required Color secondaryNormal, required Color secondaryVibrant, required Color secondaryLight, required Color error, required Color errorGradient, required Color successBackground, required Color warning, required Color warningGradient, required Color warningBackground, required Color success, required Color successGradient, required Color errorBackground, required Color greyDark, required Color greyNormal, required Color greyMedium, required Color greyLight, required Color cellOdd, required Color cellEven, required Color greyUltraLight, required Color greySemiLight, required Color greyFair, required Color greyUltraDark, required Color scoreLightGreen, required Color scoreDarkYellow, required Color scoreDarkOrange, required Color scoreRedBackground, required Color scoreOrangeBackground, required Color scoreYellowBackground, required Color scoreLightGreenBackground, required Color scoreDarkGreenBackground})
SmoothColorsThemeExtension.defaultValues(bool lightTheme)

Properties

cellEven → Color
final
cellOdd → Color
final
error → Color
When used alone
final
errorBackground → Color
final
errorGradient → Color
When used together
final
greyDark → Color
final
greyFair → Color
Background of unknown attribute icons
final
greyLight → Color
final
greyMedium → Color
final
greyNormal → Color
final
greySemiLight → Color
Loading product cards (light), onboarding bottom bar, packaging editor cards
final
greyUltraDark → Color
Unknown score text, loading product cards (dark), packaging editor cards
final
greyUltraLight → Color
Unknown score cards, text of average cells in panel tables, packaging editor cards
final
hashCode → int
The hash code for this object.
no setterinherited
primaryAccent → Color
final
primaryBlack → Color
final
primaryDark → Color
final
primaryLight → Color
final
primaryMedium → Color
final
primaryNormal → Color
final
primarySemiDark → Color
final
primaryTone → Color
final
primaryUltraBlack → Color
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scoreDarkGreenBackground → Color
final
scoreDarkOrange → Color
Text of neutral cells in panel tables
final
scoreDarkYellow → Color
Text of neutral score cards
final
scoreLightGreen → Color
Text of good score cards, background of good attribute icons
final
scoreLightGreenBackground → Color
final
scoreOrangeBackground → Color
final
scoreRedBackground → Color
Score card backgrounds, from very bad to very good
final
scoreYellowBackground → Color
final
secondaryLight → Color
final
secondaryNormal → Color
final
secondaryVibrant → Color
final
success → Color
final
successBackground → Color
final
successGradient → Color
final
type → Object
The extension's type.
no setterinherited
warning → Color
final
warningBackground → Color
final
warningGradient → Color
final

Methods

copyWith({Color? primaryUltraBlack, Color? primaryBlack, Color? primaryDark, Color? primarySemiDark, Color? primaryTone, Color? primaryNormal, Color? primaryAccent, Color? primaryMedium, Color? primaryLight, Color? secondaryNormal, Color? secondaryLight, Color? secondaryVibrant, Color? error, Color? errorGradient, Color? errorBackground, Color? warning, Color? warningGradient, Color? warningBackground, Color? success, Color? successGradient, Color? successBackground, Color? greyDark, Color? greyNormal, Color? greyMedium, Color? greyLight, Color? cellOdd, Color? cellEven, Color? greyUltraLight, Color? greySemiLight, Color? greyFair, Color? greyUltraDark, Color? scoreLightGreen, Color? scoreDarkYellow, Color? scoreDarkOrange, Color? scoreRedBackground, Color? scoreOrangeBackground, Color? scoreYellowBackground, Color? scoreLightGreenBackground, Color? scoreDarkGreenBackground}) → ThemeExtension<SmoothColorsThemeExtension>
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
override
lerp(covariant ThemeExtension<SmoothColorsThemeExtension>? other, double t) → ThemeExtension<SmoothColorsThemeExtension>
Linearly interpolate with another ThemeExtension object.
override
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