diff --git a/lib/pages/chat_list/chat_list_item.dart b/lib/pages/chat_list/chat_list_item.dart index 7738857e..bd039021 100644 --- a/lib/pages/chat_list/chat_list_item.dart +++ b/lib/pages/chat_list/chat_list_item.dart @@ -379,23 +379,19 @@ class ChatListItem extends StatelessWidget { ), onTap: () => clickAction(context), trailing: onForget == null - ? AnimatedSize( - duration: FluffyThemes.animationDuration, - curve: FluffyThemes.animationCurve, - child: hovered || selected - ? IconButton( - color: selected - ? Theme.of(context).colorScheme.primary - : null, - icon: Icon( - selected - ? Icons.check_circle - : Icons.check_circle_outlined, - ), - onPressed: onLongPress, - ) - : const SizedBox.shrink(), - ) + ? hovered || selected + ? IconButton( + color: selected + ? Theme.of(context).colorScheme.primary + : null, + icon: Icon( + selected + ? Icons.check_circle + : Icons.check_circle_outlined, + ), + onPressed: onLongPress, + ) + : null : IconButton( icon: const Icon(Icons.delete_outlined), onPressed: onForget,