From 67b5dd8f1ad554bf31761f728b66c74e24f8bf70 Mon Sep 17 00:00:00 2001 From: dab246 Date: Tue, 27 Sep 2022 18:15:42 +0700 Subject: [PATCH] Fix error conflict when upgrade enough_html_editor --- lib/features/composer/presentation/composer_controller.dart | 2 +- .../presentation/identity_creator_controller.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/features/composer/presentation/composer_controller.dart b/lib/features/composer/presentation/composer_controller.dart index ac1210a41..72eb18d51 100644 --- a/lib/features/composer/presentation/composer_controller.dart +++ b/lib/features/composer/presentation/composer_controller.dart @@ -1019,7 +1019,7 @@ class ComposerController extends BaseController { void clearFocusEditor(BuildContext context) { if (!kIsWeb) { - htmlEditorApi?.unfocus(context); + htmlEditorApi?.unfocus(); } FocusManager.instance.primaryFocus?.unfocus(); } diff --git a/lib/features/identity_creator/presentation/identity_creator_controller.dart b/lib/features/identity_creator/presentation/identity_creator_controller.dart index 7c39c09b4..0df3cc457 100644 --- a/lib/features/identity_creator/presentation/identity_creator_controller.dart +++ b/lib/features/identity_creator/presentation/identity_creator_controller.dart @@ -382,7 +382,7 @@ class IdentityCreatorController extends BaseController { void clearFocusEditor(BuildContext context) { if (!BuildUtils.isWeb) { - signatureHtmlEditorMobileController?.unfocus(context); + signatureHtmlEditorMobileController?.unfocus(); } FocusScope.of(context).unfocus(); }