From 2b59f11ea57e740d63431518015d10ecaee9b227 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elias=20M=C3=BCller?= Date: Mon, 6 Jul 2026 15:51:08 +0200 Subject: [PATCH] fixed z-index issue with background-loading indicator being behind talk-messages in chats --- .../loadable_state/view/loadable_state_consumer.dart | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/state/app/infrastructure/loadable_state/view/loadable_state_consumer.dart b/lib/state/app/infrastructure/loadable_state/view/loadable_state_consumer.dart index 8daa5eb..ddeaff0 100644 --- a/lib/state/app/infrastructure/loadable_state/view/loadable_state_consumer.dart +++ b/lib/state/app/infrastructure/loadable_state/view/loadable_state_consumer.dart @@ -115,9 +115,6 @@ class LoadableStateConsumer< visible: showPrimaryLoading, statusText: loadableState.statusText, ), - LoadableStateBackgroundLoading( - visible: showBackgroundLoading, - ), LoadableStateErrorScreen( visible: showError, message: loadableState.error?.message, @@ -130,6 +127,12 @@ class LoadableStateConsumer< curve: Curves.easeInOut, child: childWidget, ), + + // Painted last so the top loading bar stays above the content + // instead of being covered by it (e.g. the chat message list). + LoadableStateBackgroundLoading( + visible: showBackgroundLoading, + ), ], ), ),