2/9/2
This commit is contained in:
@@ -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;
|
||||
},
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user