opt.: IME popup after opening drawer if ssh term is focusing

This commit is contained in:
lollipopkit
2024-06-08 13:53:23 +08:00
parent b167287c5b
commit da48d1f66c
6 changed files with 36 additions and 31 deletions

View File

@@ -17,6 +17,7 @@ import 'package:toolbox/data/res/misc.dart';
import 'package:toolbox/data/res/provider.dart';
import 'package:toolbox/data/res/store.dart';
import 'package:toolbox/data/res/url.dart';
import 'package:toolbox/view/page/ssh/page.dart';
import 'package:wakelock_plus/wakelock_plus.dart';
part 'appbar.dart';
@@ -151,6 +152,7 @@ class _HomePageState extends State<HomePage>
physics: const NeverScrollableScrollPhysics(),
itemBuilder: (_, index) => AppTab.values[index].page,
onPageChanged: (value) {
SSHPage.focusNode.unfocus();
if (!_switchingPage) {
_selectIndex.value = value;
}