Skip to content

Commit 6dd984a

Browse files
wcjordgithub-actions[bot]ggurdin
authored
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>
1 parent d773347 commit 6dd984a

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

lib/pages/chat_list/chat_list_body.dart

+10-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,16 @@ class ChatListViewBody extends StatelessWidget {
170170
),
171171
),
172172
),
173-
if (client.rooms.isNotEmpty && !controller.isSearchMode)
173+
// #Pangea
174+
if (!controller.isSearchMode)
175+
176+
// if (client.rooms.isNotEmpty && !controller.isSearchMode)
177+
// let's simplify this UI while the user has less chat than
178+
// can fill this view
179+
if (client.rooms.length <= 7 || controller.isSearchMode)
180+
const SizedBox(height: 8),
181+
if (client.rooms.length > 7 && !controller.isSearchMode)
182+
// Pangea#
174183
SizedBox(
175184
height: 64,
176185
child: ListView(

0 commit comments

Comments
 (0)