chore: Follow up select chats

This commit is contained in:
krille-chan 2023-12-30 11:42:13 +01:00
parent 2706780a43
commit 2ec5139a0a
No known key found for this signature in database

View file

@ -379,10 +379,7 @@ class ChatListItem extends StatelessWidget {
), ),
onTap: () => clickAction(context), onTap: () => clickAction(context),
trailing: onForget == null trailing: onForget == null
? AnimatedSize( ? hovered || selected
duration: FluffyThemes.animationDuration,
curve: FluffyThemes.animationCurve,
child: hovered || selected
? IconButton( ? IconButton(
color: selected color: selected
? Theme.of(context).colorScheme.primary ? Theme.of(context).colorScheme.primary
@ -394,8 +391,7 @@ class ChatListItem extends StatelessWidget {
), ),
onPressed: onLongPress, onPressed: onLongPress,
) )
: const SizedBox.shrink(), : null
)
: IconButton( : IconButton(
icon: const Icon(Icons.delete_outlined), icon: const Icon(Icons.delete_outlined),
onPressed: onForget, onPressed: onForget,