From a66dfbd089f0b384e5e4238ada23f6ce616c22c3 Mon Sep 17 00:00:00 2001 From: Gustl22 Date: Mon, 26 Feb 2024 11:37:19 +0100 Subject: [PATCH] fix(client): Avoid progress indicator if data is available while loading --- .../lib/view/widgets/loading_builder.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrestling_scoreboard_client/lib/view/widgets/loading_builder.dart b/wrestling_scoreboard_client/lib/view/widgets/loading_builder.dart index 201432f3..7cddb32c 100644 --- a/wrestling_scoreboard_client/lib/view/widgets/loading_builder.dart +++ b/wrestling_scoreboard_client/lib/view/widgets/loading_builder.dart @@ -26,7 +26,7 @@ class LoadingBuilder extends StatelessWidget { if (initialData != null) { return builder(context, initialData as T); } - if (snapshot.connectionState == ConnectionState.waiting) { + if (snapshot.connectionState == ConnectionState.waiting && snapshot.data == null) { return const Center(child: CircularProgressIndicator()); } return builder(context, snapshot.data as T);