From 7f2aa4415d702e38f9f6855e72db20c23300e07a Mon Sep 17 00:00:00 2001 From: Sikander Saleem Date: Sun, 27 Nov 2022 12:25:15 +0300 Subject: [PATCH] improvement. --- lib/ui/chat/chat_home_screen.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/ui/chat/chat_home_screen.dart b/lib/ui/chat/chat_home_screen.dart index db18166..56c17d8 100644 --- a/lib/ui/chat/chat_home_screen.dart +++ b/lib/ui/chat/chat_home_screen.dart @@ -83,12 +83,11 @@ class _ChatHomeScreenState extends State { ), if (m.searchedChats != null) ListView.separated( - itemCount: m.searchedChats!.length + 20, + itemCount: m.searchedChats!.length, padding: const EdgeInsets.only(bottom: 80), shrinkWrap: true, physics: const NeverScrollableScrollPhysics(), itemBuilder: (BuildContext context, int index) { - index = 0; return SizedBox( height: 55, // todo @aamir, remove list tile, make a custom ui instead