chore: Adjust design of space avatars and more
This commit is contained in:
parent
e5000b83dd
commit
6d5ceba885
8 changed files with 70 additions and 57 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -96,12 +96,17 @@ class SpacesNavigationRail extends StatelessWidget {
|
|||
icon: Avatar(
|
||||
mxContent: allSpaces[i].avatar,
|
||||
name: displayname,
|
||||
border: BorderSide(
|
||||
width: 1,
|
||||
color: Theme.of(context).dividerColor,
|
||||
shapeBorder: RoundedSuperellipseBorder(
|
||||
side: BorderSide(
|
||||
width: 1,
|
||||
color: Theme.of(context).dividerColor,
|
||||
),
|
||||
borderRadius: BorderRadius.circular(
|
||||
AppConfig.spaceBorderRadius,
|
||||
),
|
||||
),
|
||||
borderRadius: BorderRadius.circular(
|
||||
AppConfig.borderRadius / 2,
|
||||
AppConfig.spaceBorderRadius,
|
||||
),
|
||||
),
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue