TF-1118 Apply new latest design forwarding

This commit is contained in:
dab246
2022-11-08 15:45:49 +07:00
committed by Dat H. Pham
parent 2402371ca3
commit eaa47b9cd7
31 changed files with 897 additions and 714 deletions
@@ -50,14 +50,4 @@ extension ValicatorFailureExtension on VerifyNameFailure {
return '';
}
}
String getMessageForwarding(BuildContext context) {
if (exception is EmptyNameException) {
return AppLocalizations.of(context).this_field_cannot_be_blank;
} else if (exception is EmailAddressInvalidException) {
return AppLocalizations.of(context).incorrectEmailFormat;
} else {
return '';
}
}
}