From eed93f26012c5b5fd726aef329d5e563cbb10cc7 Mon Sep 17 00:00:00 2001 From: Kelrap <99418823+Kelrap@users.noreply.github.com> Date: Mon, 23 Dec 2024 14:57:42 -0500 Subject: [PATCH] Adds loading indicator when waiting for IGC options (#1302) * Adds loading indicator when waiting for IGC options * when editting source text, don't show loading indicator --------- Co-authored-by: ggurdin --- lib/pangea/choreographer/widgets/it_bar.dart | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/pangea/choreographer/widgets/it_bar.dart b/lib/pangea/choreographer/widgets/it_bar.dart index 13bdb6c2b..0092cbc73 100644 --- a/lib/pangea/choreographer/widgets/it_bar.dart +++ b/lib/pangea/choreographer/widgets/it_bar.dart @@ -393,9 +393,15 @@ class ITChoices extends StatelessWidget { @override Widget build(BuildContext context) { try { - if (controller.isEditingSourceText || controller.currentITStep == null) { + if (controller.isEditingSourceText) { return const SizedBox(); } + if (controller.currentITStep == null) { + return CircularProgressIndicator( + strokeWidth: 2.0, + color: Theme.of(context).colorScheme.primary, + ); + } return ChoicesArray( isLoading: controller.isLoading || controller.choreographer.isFetching ||