chore: Adjust design of space avatars and more

This commit is contained in:
Christian Kußowski 2026-02-18 09:02:19 +01:00
commit 6d5ceba885
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
8 changed files with 70 additions and 57 deletions

View file

@ -17,7 +17,7 @@ class Avatar extends StatelessWidget {
final Color? presenceBackgroundColor;
final BorderRadius? borderRadius;
final IconData? icon;
final BorderSide? border;
final ShapeBorder? shapeBorder;
final Color? backgroundColor;
final Color? textColor;
@ -30,7 +30,7 @@ class Avatar extends StatelessWidget {
this.presenceUserId,
this.presenceBackgroundColor,
this.borderRadius,
this.border,
this.shapeBorder,
this.icon,
this.backgroundColor,
this.textColor,
@ -61,10 +61,12 @@ class Avatar extends StatelessWidget {
color: theme.brightness == Brightness.light
? Colors.white
: Colors.black,
shape: RoundedRectangleBorder(
borderRadius: borderRadius,
side: border ?? BorderSide.none,
),
shape:
shapeBorder ??
RoundedSuperellipseBorder(
borderRadius: borderRadius,
side: BorderSide.none,
),
clipBehavior: Clip.antiAlias,
child: MxcImage(
client: client,