From f0c7c43ff31d370f63590cf78c82e5f25bb555bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E6=BB=8B=E6=B6=A6?= <807046079@qq.com> Date: Tue, 29 Oct 2024 22:30:51 +0800 Subject: [PATCH] set no-jump registration --- lib/view/user/login/user_login.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/view/user/login/user_login.dart b/lib/view/user/login/user_login.dart index 7643d4e0..40b04ef3 100644 --- a/lib/view/user/login/user_login.dart +++ b/lib/view/user/login/user_login.dart @@ -85,10 +85,10 @@ class UserLoginState extends State { mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ TextButton( - onPressed: () => Navigator.pushNamed(context, UserRoutes.register), + onPressed: () => CommonToast.tipToast("不开放注册,请点击“游客模式”"), child: const Text("注册账号")), TextButton( - onPressed: () => Navigator.pushNamed(context, UserRoutes.forgetPassword), + onPressed: () => CommonToast.tipToast("不开放注册,请点击“游客模式”"), child: const Text("忘记密码")) ], ), @@ -109,7 +109,7 @@ class UserLoginState extends State { Widget buildLoginButton() { return Align( child: SizedBox( - height: 45.h, + height: 36.h, width: 270.w, child: ElevatedButton( style: ButtonStyle(