TF-1798 Fix error message is displayed behind the keyboard on IOS platform only
(cherry picked from commit 615ff21ce96440cb1da47720116efacb5328cc13)
This commit is contained in:
@@ -1457,6 +1457,8 @@ class ComposerController extends BaseController {
|
||||
}
|
||||
|
||||
void insertImage(BuildContext context, double maxWith) async {
|
||||
clearFocusEditor(context);
|
||||
|
||||
if (_responsiveUtils.isMobile(context)) {
|
||||
maxWithEditor = maxWith - 40;
|
||||
} else {
|
||||
@@ -1470,6 +1472,10 @@ class ComposerController extends BaseController {
|
||||
} else {
|
||||
_insertImageOnMobileAndTablet(inlineImage);
|
||||
}
|
||||
} else {
|
||||
if (context.mounted) {
|
||||
_appToast.showToastErrorMessage(context, AppLocalizations.of(context).cannotSelectThisImage);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user