add card for when monero wallet is in broken state (#1578)

This commit is contained in:
cyan
2024-08-07 14:40:31 +03:00
committed by GitHub
parent 5e944a8bf7
commit e58d87e94c
2 changed files with 31 additions and 0 deletions
@@ -250,6 +250,20 @@ class CryptoBalanceWidget extends StatelessWidget {
Observer(builder: (context) {
return Column(
children: [
if (dashboardViewModel.isMoneroWalletBrokenReasons.isNotEmpty) ...[
SizedBox(height: 10),
Padding(
padding: const EdgeInsets.fromLTRB(16, 0, 16, 8),
child: DashBoardRoundedCardWidget(
customBorder: 30,
title: "Monero wallet is broken",
subTitle: "Here are the things that are broken:\n - "
+dashboardViewModel.isMoneroWalletBrokenReasons.join("\n - ")
+"\n\nPlease restart your wallet and if it doesn't help contact our support.",
onTap: () {},
)
)
],
if (dashboardViewModel.showSilentPaymentsCard) ...[
SizedBox(height: 10),
Padding(