mirror of
https://github.com/zebrajr/immich.git
synced 2025-12-06 00:20:20 +01:00
fix(mobile): Misaligned text icon in circle avatar (#15683)
style(mobile): Use `DefaultTextStyle` for the text icon in `CircleAvatar`
This commit is contained in:
parent
7bbffccf76
commit
f780a56e24
|
|
@ -28,8 +28,7 @@ class UserCircleAvatar extends ConsumerWidget {
|
|||
final profileImageUrl =
|
||||
'${Store.get(StoreKey.serverEndpoint)}/users/${user.id}/profile-image?d=${Random().nextInt(1024)}';
|
||||
|
||||
final textIcon = Text(
|
||||
user.name[0].toUpperCase(),
|
||||
final textIcon = DefaultTextStyle(
|
||||
style: TextStyle(
|
||||
fontWeight: FontWeight.bold,
|
||||
fontSize: 12,
|
||||
|
|
@ -37,6 +36,7 @@ class UserCircleAvatar extends ConsumerWidget {
|
|||
? Colors.black
|
||||
: Colors.white,
|
||||
),
|
||||
child: Text(user.name[0].toUpperCase()),
|
||||
);
|
||||
return CircleAvatar(
|
||||
backgroundColor: user.avatarColor.toColor(),
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user