From ed2d08ed40f74fc8b2c2252d29fb8348b1387caa Mon Sep 17 00:00:00 2001 From: Henry-Hiles Date: Thu, 15 Oct 2026 10:02:43 -0400 Subject: [PATCH] fixup showing an error when opening info dialogue on sync waiting --- lib/widgets/sync_status_banner.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/widgets/sync_status_banner.dart b/lib/widgets/sync_status_banner.dart index 977022f..a0c6bcc 100644 --- a/lib/widgets/sync_status_banner.dart +++ b/lib/widgets/sync_status_banner.dart @@ -33,7 +33,7 @@ class const SyncStatusBanner({super.key}) extends ConsumerWidget { }; final details = status == null - ? null + ? [] : [ ?status.error, if (status.errorCount > 0) "Failed attempts: ${status.errorCount}.", @@ -49,7 +49,7 @@ class const SyncStatusBanner({super.key}) extends ConsumerWidget { : Material( color: banner.background, child: InkWell( - onTap: details == null + onTap: details.isEmpty ? null : () => showDialog( context: context, @@ -73,7 +73,7 @@ class const SyncStatusBanner({super.key}) extends ConsumerWidget { ), ), ), - if (details != null) + if (details.isNotEmpty) Icon(Icons.info_outline, color: banner.foreground), ], ),