FIX_dialog box for confirmation and Rules are removed

This commit is contained in:
sanjeev.p 2026-04-07 09:14:16 +05:30
parent 650536745d
commit 53787a7ea1

View File

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