From 0296fa24a0c1b804772efba999d52a12dc2ed80f Mon Sep 17 00:00:00 2001 From: MhdZiadHirati Date: Tue, 24 Oct 2023 16:08:51 +0300 Subject: [PATCH] ui fixes --- lib/features/chat/presentation_layer/screens/chat.dart | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/features/chat/presentation_layer/screens/chat.dart b/lib/features/chat/presentation_layer/screens/chat.dart index 80a5284..d418022 100644 --- a/lib/features/chat/presentation_layer/screens/chat.dart +++ b/lib/features/chat/presentation_layer/screens/chat.dart @@ -57,9 +57,8 @@ class ChatScreen extends StatelessWidget { SearchBarWidget( controller: searchFieldController, onChanged: (value) { - if (value == '') { - lastDate = 'today'.tr; - } + lastDate = 'today'.tr; + if (debouncer?.isActive ?? false) { debouncer!.cancel(); }