From 7a93912aaf0fb6c18e6bd25edc91670226dcc615 Mon Sep 17 00:00:00 2001 From: Palak Garg <86659286+palak-egov@users.noreply.github.com> Date: Thu, 19 Sep 2024 14:28:51 +0530 Subject: [PATCH] ISTE-361 --- .../reports/monthly_ledger_report.dart | 33 ++++++++++--------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/frontend/mgramseva/lib/screeens/reports/monthly_ledger_report.dart b/frontend/mgramseva/lib/screeens/reports/monthly_ledger_report.dart index 90f3f5c02..af8b88891 100644 --- a/frontend/mgramseva/lib/screeens/reports/monthly_ledger_report.dart +++ b/frontend/mgramseva/lib/screeens/reports/monthly_ledger_report.dart @@ -89,21 +89,24 @@ class _MonthlyLedgerReportState extends State SizedBox( width: 10, ), - TextButton.icon( - onPressed: () { - if (reportProvider.selectedBillPeriod == null) { - Notifiers.getToastMessage( - context, - '${ApplicationLocalizations.of(context).translate(i18.common.SELECT_BILLING_CYCLE)}', - 'ERROR'); - } else { - reportProvider.getMonthlyLedgerReport( - download: true); - } - }, - icon: Icon(Icons.download_sharp), - label: Text(ApplicationLocalizations.of(context) - .translate(i18.common.CORE_DOWNLOAD))), + Opacity( + opacity: 0, + child: TextButton.icon( + onPressed: () { + // if (reportProvider.selectedBillPeriod == null) { + // Notifiers.getToastMessage( + // context, + // '${ApplicationLocalizations.of(context).translate(i18.common.SELECT_BILLING_CYCLE)}', + // 'ERROR'); + // } else { + // reportProvider.getMonthlyLedgerReport( + // download: true); + // } + }, + icon: Icon(Icons.download_sharp), + label: Text(ApplicationLocalizations.of(context) + .translate(i18.common.CORE_DOWNLOAD))), + ), ], ), ],