This commit is contained in:
Hamza-Ayed
2024-02-09 16:38:45 +03:00
parent 8c61a79de3
commit 835be01923
7 changed files with 54 additions and 11 deletions

View File

@@ -44,6 +44,11 @@ class MyTextForm extends StatelessWidget {
if (value!.isEmpty) {
return 'Please enter $label.'.tr;
}
if (type == TextInputType.emailAddress) {
return 'Please enter Valid email.'.tr;
} else if (type == TextInputType.phone) {
return 'Please enter Valid Phone.'.tr;
}
return null;
},
),