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