fixup showing an error when opening info dialogue on sync waiting
This commit is contained in:
parent
24e516e6dd
commit
ed2d08ed40
1 changed files with 3 additions and 3 deletions
|
|
@ -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),
|
||||
],
|
||||
),
|
||||
|
|
|
|||
Loading…
Reference in a new issue