chore: Follow up spaces design

This commit is contained in:
Krille 2024-07-15 13:47:01 +02:00
commit 942970e049
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652

View file

@ -108,10 +108,7 @@ class ChatListItem extends StatelessWidget {
visualDensity: const VisualDensity(vertical: -0.5), visualDensity: const VisualDensity(vertical: -0.5),
contentPadding: const EdgeInsets.symmetric(horizontal: 8), contentPadding: const EdgeInsets.symmetric(horizontal: 8),
onLongPress: onLongPress, onLongPress: onLongPress,
leading: Stack( leading: HoverBuilder(
clipBehavior: Clip.none,
children: [
HoverBuilder(
builder: (context, hovered) => AnimatedScale( builder: (context, hovered) => AnimatedScale(
duration: FluffyThemes.animationDuration, duration: FluffyThemes.animationDuration,
curve: FluffyThemes.animationCurve, curve: FluffyThemes.animationCurve,
@ -156,9 +153,7 @@ class ChatListItem extends StatelessWidget {
: BorderSide( : BorderSide(
width: 2, width: 2,
color: backgroundColor ?? color: backgroundColor ??
Theme.of(context) Theme.of(context).colorScheme.surface,
.colorScheme
.surface,
), ),
borderRadius: room.isSpace borderRadius: room.isSpace
? BorderRadius.circular( ? BorderRadius.circular(
@ -180,25 +175,6 @@ class ChatListItem extends StatelessWidget {
), ),
), ),
), ),
Positioned(
bottom: -2,
right: -2,
child: AnimatedScale(
duration: FluffyThemes.animationDuration,
curve: FluffyThemes.animationCurve,
scale: (hovered) ? 1.0 : 0.0,
child: Material(
color: backgroundColor,
borderRadius: BorderRadius.circular(16),
child: const Icon(
Icons.check_circle_outlined,
size: 18,
),
),
),
),
],
),
title: Row( title: Row(
children: <Widget>[ children: <Widget>[
Expanded( Expanded(