TF-1118 Apply new design for Forwarding on web

This commit is contained in:
dab246
2022-11-04 00:33:59 +07:00
committed by Dat H. Pham
parent bd78732fe9
commit b153de5c90
22 changed files with 936 additions and 414 deletions
@@ -50,4 +50,14 @@ 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 '';
}
}
}