From cdb89a139f51f1b99f52568b9219cb37191fcd9a Mon Sep 17 00:00:00 2001 From: otsmr Date: Thu, 24 Jul 2025 22:37:03 +0200 Subject: [PATCH] fix #261 --- .../chats/chat_messages_components/chat_date_chip.dart | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/src/views/chats/chat_messages_components/chat_date_chip.dart b/lib/src/views/chats/chat_messages_components/chat_date_chip.dart index 77667d5..bfaeaa4 100644 --- a/lib/src/views/chats/chat_messages_components/chat_date_chip.dart +++ b/lib/src/views/chats/chat_messages_components/chat_date_chip.dart @@ -12,20 +12,23 @@ class ChatDateChip extends StatelessWidget { final formattedDate = item.isTime ? DateFormat.Hm(Localizations.localeOf(context).toLanguageTag()) .format(item.time!) - : '${DateFormat.Hm(Localizations.localeOf(context).toLanguageTag()).format(item.date!)} ${DateFormat.yMd(Localizations.localeOf(context).toLanguageTag()).format(item.date!)}'; + : '${DateFormat.Hm(Localizations.localeOf(context).toLanguageTag()).format(item.date!)}\n${DateFormat.yMd(Localizations.localeOf(context).toLanguageTag()).format(item.date!)}'; return Center( child: Container( decoration: BoxDecoration( - color: Colors.black.withAlpha(40), + color: isDarkMode(context) + ? const Color.fromARGB(255, 38, 38, 38) + : Colors.black.withAlpha(40), borderRadius: BorderRadius.circular(8), ), padding: const EdgeInsets.symmetric(vertical: 4, horizontal: 8), child: Text( formattedDate, + textAlign: TextAlign.center, style: TextStyle( fontSize: 10, - color: isDarkMode(context) ? Colors.white : Colors.black, + color: isDarkMode(context) ? Colors.white : Colors.grey, ), ), ),