validation popup
This commit is contained in:
parent
27e27fb70b
commit
d01e5ba860
@ -5,9 +5,10 @@ import 'package:taxglide/consts/app_colors.dart';
|
||||
class ValidationPopup {
|
||||
// Show SnackBar
|
||||
void _showSnackBar(BuildContext context, String msg, {bool isError = false}) {
|
||||
print("Mageshwaran $msg");
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(
|
||||
duration: const Duration(seconds: 2),
|
||||
duration: const Duration(seconds: 1),
|
||||
backgroundColor: isError
|
||||
? Colors.red
|
||||
: AppColors.commanbutton, // 🔴 Error red
|
||||
|
||||
Loading…
Reference in New Issue
Block a user