chore: Minor design tweaks
This commit is contained in:
parent
c9653f43b2
commit
0cad974df0
3 changed files with 17 additions and 3 deletions
|
|
@ -39,7 +39,9 @@ class Avatar extends StatelessWidget {
|
|||
child: Text(
|
||||
fallbackLetters,
|
||||
style: TextStyle(
|
||||
color: Colors.white,
|
||||
color: Theme.of(context).brightness == Brightness.light
|
||||
? name?.darkColor
|
||||
: name?.lightColor ?? Colors.white,
|
||||
fontSize: 18,
|
||||
),
|
||||
),
|
||||
|
|
@ -55,7 +57,9 @@ class Avatar extends StatelessWidget {
|
|||
width: size,
|
||||
height: size,
|
||||
color: noPic
|
||||
? name?.lightColor ?? Theme.of(context).secondaryHeaderColor
|
||||
? Theme.of(context).brightness == Brightness.light
|
||||
? name?.lightColor
|
||||
: name?.darkColor ?? Theme.of(context).secondaryHeaderColor
|
||||
: Theme.of(context).secondaryHeaderColor,
|
||||
child: noPic
|
||||
? textWidget
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue