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
|
final details = status == null
|
||||||
? null
|
? []
|
||||||
: [
|
: [
|
||||||
?status.error,
|
?status.error,
|
||||||
if (status.errorCount > 0) "Failed attempts: ${status.errorCount}.",
|
if (status.errorCount > 0) "Failed attempts: ${status.errorCount}.",
|
||||||
|
|
@ -49,7 +49,7 @@ class const SyncStatusBanner({super.key}) extends ConsumerWidget {
|
||||||
: Material(
|
: Material(
|
||||||
color: banner.background,
|
color: banner.background,
|
||||||
child: InkWell(
|
child: InkWell(
|
||||||
onTap: details == null
|
onTap: details.isEmpty
|
||||||
? null
|
? null
|
||||||
: () => showDialog(
|
: () => showDialog(
|
||||||
context: context,
|
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),
|
Icon(Icons.info_outline, color: banner.foreground),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue