TF-1115 Handle onError for all controller

This commit is contained in:
dab246
2022-10-28 13:12:14 +07:00
committed by Dat H. Pham
parent ef08949e98
commit 490787fc11
28 changed files with 11 additions and 103 deletions
@@ -281,18 +281,6 @@ class ComposerController extends BaseController {
});
}
@override
void onError(error) {
if (currentOverlayContext != null && currentContext != null) {
_appToast.showToastWithIcon(
currentOverlayContext!,
textColor: AppColor.toastErrorBackgroundColor,
message: AppLocalizations.of(currentContext!).message_has_been_sent_failure,
icon: _imagePaths.icSendToast);
}
popBack();
}
void _listenWorker() {
uploadInlineImageWorker = ever(uploadController.uploadInlineViewState, (state) {
log('ComposerController::_listenWorker(): $state');