validation popup
This commit is contained in:
1 parent
27e27fb70b
commit
d01e5ba860
1 file changed
+2
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user