From 6dd984a23bad602254d607f96163eebc5a23acf9 Mon Sep 17 00:00:00 2001 From: wcjord <32568597+wcjord@users.noreply.github.com> Date: Mon, 3 Feb 2025 12:29:49 -0500 Subject: [PATCH] 1655-hide-rooms-filters-with-7-rooms (#1656) * ui(chat_list_body): hide filters if < 7 rooms * generated --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: ggurdin <46800240+ggurdin@users.noreply.github.com> --- lib/pages/chat_list/chat_list_body.dart | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/lib/pages/chat_list/chat_list_body.dart b/lib/pages/chat_list/chat_list_body.dart index c142d4d0c..b54c02ca2 100644 --- a/lib/pages/chat_list/chat_list_body.dart +++ b/lib/pages/chat_list/chat_list_body.dart @@ -170,7 +170,16 @@ class ChatListViewBody extends StatelessWidget { ), ), ), - if (client.rooms.isNotEmpty && !controller.isSearchMode) + // #Pangea + if (!controller.isSearchMode) + + // if (client.rooms.isNotEmpty && !controller.isSearchMode) + // let's simplify this UI while the user has less chat than + // can fill this view + if (client.rooms.length <= 7 || controller.isSearchMode) + const SizedBox(height: 8), + if (client.rooms.length > 7 && !controller.isSearchMode) + // Pangea# SizedBox( height: 64, child: ListView(