This commit is contained in:
Hamza-Ayed
2024-11-03 13:39:16 +02:00
parent 3e88059166
commit 5919554eaa
20 changed files with 1188 additions and 24 deletions

View File

@@ -51,7 +51,7 @@ class MyTextForm extends StatelessWidget {
return 'Please enter a valid email.'.tr;
}
} else if (type == TextInputType.phone) {
if (value.length != 10) {
if (value.length != 11) {
return 'Please enter a valid phone number.'.tr;
}
}