fix(ios): Add defensive timer cancellation for keyboard visibility (#14301)

Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
fufesou 2026-02-09 15:54:22 +08:00 committed by GitHub
commit de6bf9dc7e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -224,6 +224,8 @@ class _RemotePageState extends State<RemotePage> with WidgetsBindingObserver {
});
}
} else {
_iosKeyboardWorkaroundTimer?.cancel();
_iosKeyboardWorkaroundTimer = null;
_timer?.cancel();
_timer = Timer(kMobileDelaySoftKeyboardFocus, () {
SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual,