generateThemeByColor static method
Implementation
static UpThemeData generateThemeByColor({
required Color primaryColor,
required Color baseColor,
bool isDark = false,
Color? secondaryColor,
Color? tertiaryColor,
Color? warnColor,
Color? linkColor,
Color? successColor,
}) {
return generateThemeByMaterial(
isDark: isDark ? true : false,
baseColor: isDark
? generateLighterMaterialColor(baseColor)
: generateDarkerMaterialColor(baseColor),
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,
);
}