fixed z-index issue with background-loading indicator being behind talk-messages in chats

This commit is contained in:
2026-07-06 15:51:08 +02:00
parent 124b1a5177
commit 2b59f11ea5
@@ -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,
),
],
),
),