From 1b95694a5848c8b1503f963550dced896cc358a6 Mon Sep 17 00:00:00 2001 From: Krille Date: Mon, 15 Jul 2024 16:53:09 +0200 Subject: [PATCH] chore: Follow up spaces design --- lib/pages/chat_list/chat_list.dart | 6 +++++- lib/pages/chat_list/chat_list_item.dart | 13 +++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/lib/pages/chat_list/chat_list.dart b/lib/pages/chat_list/chat_list.dart index 06cb532d4..8ee1870b5 100644 --- a/lib/pages/chat_list/chat_list.dart +++ b/lib/pages/chat_list/chat_list.dart @@ -652,7 +652,11 @@ class ChatListController extends State name: displayname, ), const SizedBox(width: 12), - Text(displayname), + Text( + displayname, + style: + TextStyle(color: Theme.of(context).colorScheme.onSurface), + ), ], ), ), diff --git a/lib/pages/chat_list/chat_list_item.dart b/lib/pages/chat_list/chat_list_item.dart index ed46b03f7..0217e0c97 100644 --- a/lib/pages/chat_list/chat_list_item.dart +++ b/lib/pages/chat_list/chat_list_item.dart @@ -168,6 +168,19 @@ class ChatListItem extends StatelessWidget { onTap: () => onLongPress?.call(context), ), ), + if (hovered) + Positioned( + top: -2, + right: -2, + child: Material( + color: backgroundColor, + borderRadius: BorderRadius.circular(16), + child: const Icon( + Icons.arrow_drop_down_circle_outlined, + size: 18, + ), + ), + ), ], ), ),