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