Skip to content

Commit

Permalink
Only show the avatar when there is a user assigned
Browse files Browse the repository at this point in the history
  • Loading branch information
mz2 committed Feb 13, 2025
1 parent f414fd9 commit 0cace4d
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions frontend/lib/ui/user_avatar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,17 @@ class UserAvatar extends StatelessWidget {
child: Stack(
alignment: Alignment.center,
children: [
CircleAvatar(
backgroundColor: _avatarColor,
child: Text(
user.initials,
style: Theme.of(context)
.textTheme
.labelLarge
?.apply(fontWeightDelta: 4),
if (!user.isEmpty)
CircleAvatar(
backgroundColor: _avatarColor,
child: Text(
user.initials,
style: Theme.of(context)
.textTheme
.labelLarge
?.apply(fontWeightDelta: 4),
),
),
),
SizedBox(
width: 43.0,
height: 43.0,
Expand Down

0 comments on commit 0cace4d

Please sign in to comment.