From 282188f574e419fe6837a3fa6d96999b76534522 Mon Sep 17 00:00:00 2001 From: Krille Date: Mon, 15 Jul 2024 16:57:56 +0200 Subject: [PATCH] chore: Follow up listtilehovered --- lib/pages/chat_list/chat_list_item.dart | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/pages/chat_list/chat_list_item.dart b/lib/pages/chat_list/chat_list_item.dart index 8036aee6..a146a076 100644 --- a/lib/pages/chat_list/chat_list_item.dart +++ b/lib/pages/chat_list/chat_list_item.dart @@ -170,10 +170,13 @@ class ChatListItem extends StatelessWidget { onTap: () => onLongPress?.call(context), ), ), - if (listTileHovered) - Positioned( - top: -2, - right: -2, + Positioned( + top: -2, + right: -2, + child: AnimatedScale( + duration: FluffyThemes.animationDuration, + curve: FluffyThemes.animationCurve, + scale: listTileHovered ? 1.1 : 1.0, child: Material( color: backgroundColor, borderRadius: BorderRadius.circular(16), @@ -183,6 +186,7 @@ class ChatListItem extends StatelessWidget { ), ), ), + ), ], ), ),