mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-10 08:25:12 +00:00
chore: Follow up select chats
This commit is contained in:
parent
2706780a43
commit
2ec5139a0a
1 changed files with 13 additions and 17 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue