TNC Route Fixed

This commit is contained in:
2025-11-10 12:39:31 +05:30
parent 3e88aad43f
commit 5c8df8ace3
7 changed files with 301 additions and 84 deletions

View File

@@ -75,10 +75,17 @@ class _TncDialogState extends State<TncDialog> {
actions: [
TextButton(
// Disable button while loading
onPressed: _isLoading ? null : () {
// Pop with false to indicate disagreement
Navigator.of(context).pop(false);
},
onPressed: _isLoading
? null
: () {
ScaffoldMessenger.of(context).showSnackBar(
const SnackBar(
content: Text(
'You must agree to the terms and conditions to proceed.'),
behavior: SnackBarBehavior.floating,
),
);
},
child: const Text('Disagree'),
),
ElevatedButton(