From 77fd7a811c9c0ff90ec3ef6f2b807f2fe4aa3043 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Sun, 1 Aug 2021 07:47:00 +0200 Subject: [PATCH] design: Make avatars lighter --- lib/widgets/avatar.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/widgets/avatar.dart b/lib/widgets/avatar.dart index e0a9f371..c1658069 100644 --- a/lib/widgets/avatar.dart +++ b/lib/widgets/avatar.dart @@ -43,7 +43,7 @@ class Avatar extends StatelessWidget { child: Text( fallbackLetters, style: TextStyle( - color: noPic ? Colors.white : null, + color: noPic ? name?.darkColor : null, fontSize: 18, ), ), @@ -57,7 +57,8 @@ class Avatar extends StatelessWidget { child: Container( width: size, height: size, - color: noPic ? name?.color : Theme.of(context).secondaryHeaderColor, + color: + noPic ? name?.lightColor : Theme.of(context).secondaryHeaderColor, child: noPic ? textWidget : CachedNetworkImage(