generateThemeByColor static method
Implementation
static UpThemeData generateThemeByColor({
required Color primaryColor,
Color? secondaryColor,
Color? tertiaryColor,
Color? warnColor,
Color? linkColor,
Color? successColor,
}) {
return generateThemeByMaterial(
primaryColor: generateMaterialFromSingleColor(primaryColor),
secondaryColor: secondaryColor != null
? generateMaterialFromSingleColor(secondaryColor)
: null,
tertiaryColor: tertiaryColor != null
? generateMaterialFromSingleColor(tertiaryColor)
: null,
warnColor:
warnColor != null ? generateMaterialFromSingleColor(warnColor) : null,
linkColor:
linkColor != null ? generateMaterialFromSingleColor(linkColor) : null,
successColor: successColor != null
? generateMaterialFromSingleColor(successColor)
: null,
);
}