You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example: It works normally in screen 2, but when back to previous screen and navigate again to screen 2, it can't detect if keyboard show or hide anymore. :<
The text was updated successfully, but these errors were encountered:
I've found the solution for this problem: removeListener on dispose()
For Example:
var keyboardVisibilityNoti = KeyboardVisibilityNotification();
var keyboardVisibilityNotiId = keyboardVisibilityNoti.addNewListener(onShow: () {
_hideEmojiChooser();
isKeyboardShowing = true;
}, onHide: () {
isKeyboardShowing = false;
});
and in disspose: @OverRide
void dispose() {
keyboardVisibilityNoti.removeListener(keyboardVisibilityNotiId);
super.dispose();
}
For example: It works normally in screen 2, but when back to previous screen and navigate again to screen 2, it can't detect if keyboard show or hide anymore. :<
The text was updated successfully, but these errors were encountered: