瀏覽代碼

1、登陆页面跳转的键盘隐藏

tags/0.0.1^0
PH2 4 年之前
父節點
當前提交
eae0bff37c
共有 3 個檔案被更改,包括 4 行新增0 行删除
  1. +2
    -0
      lib/pages/login_page/account/login_account_page.dart
  2. +1
    -0
      lib/pages/login_page/invite/login_invite_page.dart
  3. +1
    -0
      lib/pages/login_page/login_page.dart

+ 2
- 0
lib/pages/login_page/account/login_account_page.dart 查看文件

@@ -56,6 +56,7 @@ class _LoginAccountPageContianerState extends State<LoginAccountPageContianer> i
/// 跳转到邀请码页面
void _openInvitePage() {
print('跳转到邀请码页面');
RouterUtil.hideKeyboard(context);
Navigator.push(context, CupertinoPageRoute(
// builder: (_) => PageFactory.create('login_invite', null)
builder: (_) => LoginInvitePage()
@@ -64,6 +65,7 @@ class _LoginAccountPageContianerState extends State<LoginAccountPageContianer> i

/// 登陆成功页面
void _openLoginSuccessPage() {
RouterUtil.hideKeyboard(context);
Navigator.pushAndRemoveUntil(
context,
MaterialPageRoute(builder: (BuildContext context) => PageFactory.create('homePage', null)),


+ 1
- 0
lib/pages/login_page/invite/login_invite_page.dart 查看文件

@@ -48,6 +48,7 @@ class _LoginInvitePageContainerState extends State<LoginInvitePageContainer> {

/// 注册成功跳转
void _successJump(){
RouterUtil.hideKeyboard(context);
Navigator.pushAndRemoveUntil(
context,
MaterialPageRoute(builder: (BuildContext context) => PageFactory.create('homePage', null)),


+ 1
- 0
lib/pages/login_page/login_page.dart 查看文件

@@ -42,6 +42,7 @@ class _LoginPageContainerState extends State<LoginPageContainer> {
void _loginClick(String type) {
print('登陆$type');
if(type == 'mobile'){
RouterUtil.hideKeyboard(context);
Navigator.push(context, CupertinoPageRoute(
builder: (_) => LoginAccountPage(null)
));


Loading…
取消
儲存