feat: nicer loading bar

This commit is contained in:
Krille Fear 2021-11-23 19:34:55 +01:00
commit b4f2adadad
2 changed files with 21 additions and 20 deletions

View file

@ -182,7 +182,6 @@ class ChatListView extends StatelessWidget {
.displayname),
),
body: Column(children: [
const ConnectionStatusHeader(),
AnimatedContainer(
height: controller.showChatBackupBanner ? 54 : 0,
duration: const Duration(milliseconds: 300),
@ -219,10 +218,15 @@ class ChatListView extends StatelessWidget {
child: const Icon(CupertinoIcons.chat_bubble),
)
: null,
bottomNavigationBar: controller.spaces.isEmpty ||
controller.selectedRoomIds.isNotEmpty
? null
: SpacesBottomBar(controller),
bottomNavigationBar: Column(
mainAxisSize: MainAxisSize.min,
children: [
const ConnectionStatusHeader(),
if (controller.spaces.isNotEmpty &&
controller.selectedRoomIds.isEmpty)
SpacesBottomBar(controller),
],
),
),
);
});