Browse Source

1、登陆页面的焦点问题修复

tags/0.0.1
PH2 4 years ago
parent
commit
45b9019acb
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      lib/pages/login_page/account/login_account_page.dart

+ 4
- 2
lib/pages/login_page/account/login_account_page.dart View File

@@ -93,16 +93,18 @@ class _LoginAccountPageContianerState extends State<LoginAccountPageContianer> i
void _changeLoginTypeOnClick() { void _changeLoginTypeOnClick() {
print('切换登陆'); print('切换登陆');


_passFN?.unfocus();
_vcodeFN?.unfocus();
_phoneFN?.unfocus();

setState(() { setState(() {
_useVcode = !_useVcode; _useVcode = !_useVcode;
}); });
// 清除缓存 // 清除缓存
if (_useVcode) { if (_useVcode) {
_passEdController?.clear(); _passEdController?.clear();
_passFN?.unfocus();
} else { } else {
_vcodeEdController?.clear(); _vcodeEdController?.clear();
_vcodeFN?.unfocus();
} }
} }




Loading…
Cancel
Save