diff --git a/lib/presentation/screens/UserManagement/Agent/agentList.dart b/lib/presentation/screens/UserManagement/Agent/agentList.dart index 8a1a7e1..baa855b 100644 --- a/lib/presentation/screens/UserManagement/Agent/agentList.dart +++ b/lib/presentation/screens/UserManagement/Agent/agentList.dart @@ -156,30 +156,32 @@ class AgentListState extends ConsumerState { } Future _exportRetentionRateExcel() async { - final proceed = await showDialog( - context: context, - builder: (ctx) { - return AlertDialog( - title: const Text('Export Rentation Rate'), - content: const Text( - 'The downloaded Excel will include input validation.\n\n' - 'Allowed values: only numbers from 0 to 100.\n' - 'Not allowed: negative values, values above 100, text/special characters.', - ), - actions: [ - TextButton( - onPressed: () => Navigator.pop(ctx, false), - child: const Text('Cancel'), - ), - ElevatedButton( - onPressed: () => Navigator.pop(ctx, true), - child: const Text('Download'), - ), - ], - ); - }, - ); - if (proceed != true) return; + /****** Export confirmation dialog kept for future use ********/ + // final proceed = await showDialog( + // context: context, + // builder: (ctx) { + // return AlertDialog( + // title: const Text('Export Rentation Rate'), + // content: const Text( + // 'The downloaded Excel will include input validation.\n\n' + // 'Allowed values: only numbers from 0 to 100.\n' + // 'Not allowed: negative values, values above 100, text/special characters.', + // ), + // actions: [ + // TextButton( + // onPressed: () => Navigator.pop(ctx, false), + // child: const Text('Cancel'), + // ), + // ElevatedButton( + // onPressed: () => Navigator.pop(ctx, true), + // child: const Text('Download'), + // ), + // ], + // ); + // }, + // ); + // if (proceed != true) return; + /****** *************************************************** ********/ try { await apiService.downloadAgentRetentionRateExcel(); @@ -241,7 +243,8 @@ class AgentListState extends ConsumerState { 'Import done', ); } - await _showRetentionImportReportDialog(data, report); + // doN'T Delete This function And Related Codes + // await _showRetentionImportReportDialog(data, report); refresh(); } else { if (mounted) {