From d6432677df6adf7bc00e7d3fa6f1a418d80cf501 Mon Sep 17 00:00:00 2001 From: otsmr Date: Thu, 21 May 2026 14:30:26 +0200 Subject: [PATCH] fix ui glitch --- lib/src/visual/views/chats/chat_list.view.dart | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/src/visual/views/chats/chat_list.view.dart b/lib/src/visual/views/chats/chat_list.view.dart index 251b949c..d45536cb 100644 --- a/lib/src/visual/views/chats/chat_list.view.dart +++ b/lib/src/visual/views/chats/chat_list.view.dart @@ -39,6 +39,7 @@ class _ChatListViewState extends State { List _groupsArchived = []; bool _hasContacts = false; + bool _loading = true; bool get _hasOpenGroup => _groupsNotPinned.isNotEmpty || _groupsArchived.isNotEmpty || _groupsPinned.isNotEmpty; GlobalKey searchForOtherUsers = GlobalKey(); @@ -66,6 +67,7 @@ class _ChatListViewState extends State { _groupsNotPinned = groups.where((x) => !x.pinned && !x.archived).toList(); _groupsPinned = groups.where((x) => x.pinned && !x.archived).toList(); _groupsArchived = groups.where((x) => x.archived).toList(); + _loading = false; }); }); @@ -218,7 +220,11 @@ class _ChatListViewState extends State { children: [ const FinishSetupComp(), const MissingBackupComp(), - if (!_hasOpenGroup) + if (_loading) + const Expanded( + child: SizedBox.shrink(), + ) + else if (!_hasOpenGroup) Expanded( child: ListView( physics: const AlwaysScrollableScrollPhysics(),