zubairehman / flutter_boilerplate_project

A boilerplate project created in flutter using MobX and Provider.
http://zubairehman.surge.sh/
MIT License
2.26k stars 905 forks source link

form_store localizations #109

Open hattatyazilim opened 3 years ago

hattatyazilim commented 3 years ago

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.