|
|
|
@ -28,8 +28,7 @@ class UserCircleAvatar extends ConsumerWidget {
|
|
|
|
final profileImageUrl =
|
|
|
|
final profileImageUrl =
|
|
|
|
'${Store.get(StoreKey.serverEndpoint)}/users/${user.id}/profile-image?d=${Random().nextInt(1024)}';
|
|
|
|
'${Store.get(StoreKey.serverEndpoint)}/users/${user.id}/profile-image?d=${Random().nextInt(1024)}';
|
|
|
|
|
|
|
|
|
|
|
|
final textIcon = Text(
|
|
|
|
final textIcon = DefaultTextStyle(
|
|
|
|
user.name[0].toUpperCase(),
|
|
|
|
|
|
|
|
style: TextStyle(
|
|
|
|
style: TextStyle(
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
fontSize: 12,
|
|
|
|
fontSize: 12,
|
|
|
|
@ -37,6 +36,7 @@ class UserCircleAvatar extends ConsumerWidget {
|
|
|
|
? Colors.black
|
|
|
|
? Colors.black
|
|
|
|
: Colors.white,
|
|
|
|
: Colors.white,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
child: Text(user.name[0].toUpperCase()),
|
|
|
|
);
|
|
|
|
);
|
|
|
|
return CircleAvatar(
|
|
|
|
return CircleAvatar(
|
|
|
|
backgroundColor: user.avatarColor.toColor(),
|
|
|
|
backgroundColor: user.avatarColor.toColor(),
|
|
|
|
|