From c8e9adb81dc5be1e10d0f19137fa7e822f08445f Mon Sep 17 00:00:00 2001 From: "Lucas.Xu" Date: Mon, 15 Jan 2024 16:26:37 +0800 Subject: [PATCH] fix: unable to use slide gesture to close keyboard (#4391) --- .../mobile_toolbar_v3/keyboard_height_observer.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/mobile_toolbar_v3/keyboard_height_observer.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/mobile_toolbar_v3/keyboard_height_observer.dart index a1a58184fc..5037add78b 100644 --- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/mobile_toolbar_v3/keyboard_height_observer.dart +++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/mobile_toolbar_v3/keyboard_height_observer.dart @@ -8,8 +8,9 @@ typedef KeyboardHeightCallback = void Function(double height); class KeyboardHeightObserver { KeyboardHeightObserver._() { _keyboardHeightPlugin.onKeyboardHeightChanged((height) { - currentKeyboardHeight = height; notify(height); + + currentKeyboardHeight = height; }); }