TNC Route Fixed
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user