mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-17 08:15:09 +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),
|
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,
|
||||||
|
|
Loading…
Reference in a new issue