implemented connectivity debouncing and refetch throttling for loadable state UI components

This commit is contained in:
2026-08-01 18:16:22 +02:00
parent 32be67426c
commit 2d690736e3
7 changed files with 194 additions and 28 deletions
@@ -55,7 +55,7 @@ class FilesSearchResults extends StatelessWidget {
final showPrimaryLoading = isLoading && !hasContent;
final showBackgroundLoading = isLoading && hasContent;
final showErrorScreen = hasError && !hasContent && !isLoading;
final showErrorBar = hasError && hasContent;
final showErrorBar = hasError && hasContent && !isLoading;
final showEmpty = !hasContent && !hasError && !isLoading;
final errorMessage = hasError ? errorToUserMessage(controller.serverError) : null;
@@ -65,6 +65,7 @@ class FilesSearchResults extends StatelessWidget {
LoadableStateErrorBar(
visible: showErrorBar,
hasContent: hasContent,
loading: isLoading,
message: errorMessage,
),
// Background loading sits *outside* the result Stack so the linear