void validateUserEmail(String value) {
if (value.isEmpty) {
formErrorStore.userEmail = "Email cant be empty";
} else if (!isEmail(value)) {
formErrorStore.userEmail = 'Lütfen geçerli bir email giriniz';
} else {
formErrorStore.userEmail = null;
}
}
Iam use localizations AppLocalizations.of(context).translate('email_not_empty') instead of "Email cant be empty". But context error.
form_store.dart
void validateUserEmail(String value) { if (value.isEmpty) { formErrorStore.userEmail = "Email cant be empty"; } else if (!isEmail(value)) { formErrorStore.userEmail = 'Lütfen geçerli bir email giriniz'; } else { formErrorStore.userEmail = null; } } Iam use localizations AppLocalizations.of(context).translate('email_not_empty') instead of "Email cant be empty". But context error.