fix: avatar color

This commit is contained in:
Gabriel Rodríguez 2023-01-29 10:29:25 -05:00 committed by Krille
commit d226bf6020
3 changed files with 10 additions and 4 deletions

View file

@ -22,8 +22,13 @@ extension StringColor on String {
return _colorCache[this]![0.2] ??= _getColorLight(0.2);
}
Color get lightColor {
Color get lightColorText {
_colorCache[this] ??= {};
return _colorCache[this]![0.7] ??= _getColorLight(0.7);
}
Color get lightColorAvatar {
_colorCache[this] ??= {};
return _colorCache[this]![0.4] ??= _getColorLight(0.4);
}
}