fix: unable to use slide gesture to close keyboard (#4391)

This commit is contained in:
Lucas.Xu 2024-01-15 16:26:37 +08:00 committed by GitHub
parent 6d3a7545a6
commit c8e9adb81d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,8 +8,9 @@ typedef KeyboardHeightCallback = void Function(double height);
class KeyboardHeightObserver {
KeyboardHeightObserver._() {
_keyboardHeightPlugin.onKeyboardHeightChanged((height) {
currentKeyboardHeight = height;
notify(height);
currentKeyboardHeight = height;
});
}