chore: Follow up spaces design
This commit is contained in:
parent
8a5cd9bf16
commit
942970e049
1 changed files with 58 additions and 82 deletions
|
|
@ -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(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue