TF-527 Add presentation layer in add new identity

This commit is contained in:
dab246
2022-05-05 09:10:32 +07:00
committed by Dat H. Pham
parent 32f99fcca2
commit 36e33b0866
19 changed files with 1030 additions and 57 deletions
@@ -24,4 +24,12 @@ extension ValicatorFailureExtension on VerifyNameFailure {
return '';
}
}
String getMessageIdentity(BuildContext context) {
if (exception is EmptyNameException) {
return AppLocalizations.of(context).this_field_cannot_be_blank;
} else {
return '';
}
}
}