From f6fba1498cc33799e1543ed15f614c339309a66e Mon Sep 17 00:00:00 2001 From: Daisy <> Date: Tue, 30 Apr 2024 16:31:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B3=A8=E5=86=8C=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E9=80=89=E4=B8=AD=E9=82=AE=E7=AE=B1=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E9=94=99=E8=AF=AF=E9=97=AE=E9=A2=98bugID?= =?UTF-8?q?=E4=B8=BA=EF=BC=9AID1001493?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- star_lock/images/icon_login_email.png | Bin 0 -> 1529 bytes .../register/starLock_register_page.dart | 135 +++++++++--------- 2 files changed, 71 insertions(+), 64 deletions(-) create mode 100644 star_lock/images/icon_login_email.png diff --git a/star_lock/images/icon_login_email.png b/star_lock/images/icon_login_email.png new file mode 100644 index 0000000000000000000000000000000000000000..7e11d815409756ab45d68a925d3081c852b7592d GIT binary patch literal 1529 zcmV zuo4a&JeWw~vd1~Bi6na9;Du!8xbeaQHNk{~i3r8kYE2I%vWb{p)`GN@LW7B|e=3$b zY4@4-YY*jzS1OeWtJOM0D^5>OUnY@Ar1imr2bXC(SgqC}rBayy!0&4} z<)t7h5{a}D0NB{rXq}mv>7(sfW;jXI%*;$*Bob)_0J5`(w8yFZE zB7_JySR79X5e5bZs3^PL-kXa8@?pRZZf!2iJ>_&d&B0*MfC7^Sg~ej&1fZALNB{Qi z+t;yJjMUfHFJ~86mQ9^FapFlJ5cm^?6srqeqX-fk427!ZV@yVqgHE zkHuo5IF@C<3XWlzk+WydilSClR*FFZGGM?C?%lh0sWWHJtYjBhmQ5W$e%uob27f?_ zIEG2|x3 zPN#pD(8~lF11*N?*$-We`!@Yd@5)8wjy}jL&UC`-taR9>} zj|Zt#N=fM)PY4m(+uNzAr%#`@?EwV<*b58*@bTlvpK055I$d0+(_NdIn))pki|v}B zuq?aO*Vp%_Seu_ee^%|aUweV^b#-+fv)O!4YNrgq@AsUaz;M*ap2`Z_DE1V*lvq=q*~kv$J#h z)TvV*$i&Hk@fwY0p}V_V6qQUSRRB1j&v#{he!d{i>-Dzye7-9HI6)AOis3F?xNxto zu1*%N*yk8uQ&Y1bwoI3e+S#Pv+}zxXMx&&mp<$VJjKkru`2GH#>|;`?)ZZ^&yy$3Y zX>sN5-_+Ff&*tXlPw(Hq4;RtjdFJ-*+kZfMiB;F8ItYHVz5m{#oS>YCDMGz*Zp=fq%qRaMpVo}L~mYGPtyKT(-T;x1mi zI9XFuBZ{NJc(q#XlR_mDiTy@pB8jtDETXtv7_U~VeZ9TCf6*E`U{odran;q;&yj=6 zJ7Z!fo6UCp5Kx(L$z)PBK0bbfR-}ysc`(}gz0GF3{^`>vH4gW461Tm*%}z{Ao z%@aZdiP=Fpgl8B=NT<`(H*~QVO)iy6?Q_5O98T=}IZ*nGX4&UE>|4us*teGdEi5zK fm&1QJzH0sj|AWbA8!cls00000NkvXXu0mjf`nc>} literal 0 HcmV?d00001 diff --git a/star_lock/lib/login/register/starLock_register_page.dart b/star_lock/lib/login/register/starLock_register_page.dart index b23883c5..dd2d5bbe 100644 --- a/star_lock/lib/login/register/starLock_register_page.dart +++ b/star_lock/lib/login/register/starLock_register_page.dart @@ -78,7 +78,8 @@ class _StarLockRegisterPageState extends State { // color: Colors.red, decoration: BoxDecoration( borderRadius: BorderRadius.all(Radius.circular(30.h)), - border: Border.all(width: 1.0, color: AppColors.greyLineColor)), + border: + Border.all(width: 1.0, color: AppColors.greyLineColor)), child: Row( children: [ GestureDetector( @@ -146,40 +147,42 @@ class _StarLockRegisterPageState extends State { state.countryCode.value = result['code']; state.countryName.value = result['countryName']; } - AppLog.log("路由返回值: $result, countryCode:${logic.state.countryCode}"); + AppLog.log( + "路由返回值: $result, countryCode:${logic.state.countryCode}"); }, child: Obx(() => SizedBox( - height: 70.h, - child: Row( - children: [ - SizedBox(width: 5.w), - Expanded( - child: Text("${"你所在的".tr}${TranslationLoader.lanKeys!.countryAndRegion!.tr}", - style: TextStyle( - fontSize: 26.sp, color: AppColors.blackColor))), - SizedBox(width: 20.w), - Row( - mainAxisAlignment: MainAxisAlignment.end, + height: 70.h, + child: Row( children: [ - Text( - state.isIphoneType.value - ? '${state.countryName.value} +${state.countryCode.value}' - : state.countryName.value, - textAlign: TextAlign.end, - style: TextStyle( - fontSize: 26.sp, color: AppColors.blackColor), - ) + SizedBox(width: 5.w), + Expanded( + child: Text( + "${"你所在的".tr}${TranslationLoader.lanKeys!.countryAndRegion!.tr}", + style: TextStyle( + fontSize: 26.sp, color: AppColors.blackColor))), + SizedBox(width: 20.w), + Row( + mainAxisAlignment: MainAxisAlignment.end, + children: [ + Text( + state.isIphoneType.value + ? '${state.countryName.value} +${state.countryCode.value}' + : state.countryName.value, + textAlign: TextAlign.end, + style: TextStyle( + fontSize: 26.sp, color: AppColors.blackColor), + ) + ], + ), + SizedBox(width: 5.w), + Image.asset( + 'images/icon_right.png', + width: 50.w, + height: 50.w, + ), ], ), - SizedBox(width: 5.w), - Image.asset( - 'images/icon_right.png', - width: 50.w, - height: 50.w, - ), - ], - ), - )), + )), ), Container( height: 0.5.h, @@ -193,26 +196,29 @@ class _StarLockRegisterPageState extends State { return Column( children: [ Obx(() => LoginInput( - controller: state.phoneOrEmailController, - onchangeAction: (v) { - logic.checkNext(state.phoneOrEmailController); - }, - leftWidget: - // Image.asset('images/icon_login_account.png', width: 30.w, height: 30.w,), - Padding( - padding: EdgeInsets.only(right: 10.w, left: 5.w), - child: Image.asset( - 'images/icon_login_account.png', - width: 30.w, - height: 30.w, - ), - ), - hintText: "${TranslationLoader.lanKeys!.pleaseEnter!.tr}${state.isIphoneType.value ? "手机号".tr : TranslationLoader.lanKeys!.email!.tr}", - keyboardType: TextInputType.number, - inputFormatters: [ - // FilteringTextInputFormatter.allow(RegExp('[0-9]')), - LengthLimitingTextInputFormatter(30), - ])), + controller: state.phoneOrEmailController, + onchangeAction: (v) { + logic.checkNext(state.phoneOrEmailController); + }, + leftWidget: + // Image.asset('images/icon_login_account.png', width: 30.w, height: 30.w,), + Padding( + padding: EdgeInsets.only(right: 10.w, left: 5.w), + child: Image.asset( + state.isIphoneType.value + ? 'images/icon_login_account.png' + : "images/icon_login_email.png", + width: 30.w, + height: 30.w, + ), + ), + hintText: + "${TranslationLoader.lanKeys!.pleaseEnter!.tr}${state.isIphoneType.value ? "手机号".tr : TranslationLoader.lanKeys!.email!.tr}", + keyboardType: TextInputType.number, + inputFormatters: [ + // FilteringTextInputFormatter.allow(RegExp('[0-9]')), + LengthLimitingTextInputFormatter(30), + ])), SizedBox(height: 10.w), LoginInput( controller: state.pwdController, @@ -285,20 +291,21 @@ class _StarLockRegisterPageState extends State { width: 20.w, ), Obx(() => GestureDetector( - onTap: state.phoneOrEmailStrIsOK.value && state.canResend.value - ? () async { - // Navigator.pushNamed(context, Routers.safetyVerificationPage, arguments: {"countryCode":"+86", "account":state.phoneOrEmailStr.value}); - var result = await Navigator.pushNamed( - context, Routers.safetyVerificationPage, - arguments: { - "countryCode": state.countryCode, - "account": state.phoneOrEmailStr.value - }); - state.xWidth.value = - (result as Map)['xWidth']; - logic.sendValidationCode(); - } - : null, + onTap: + state.phoneOrEmailStrIsOK.value && state.canResend.value + ? () async { + // Navigator.pushNamed(context, Routers.safetyVerificationPage, arguments: {"countryCode":"+86", "account":state.phoneOrEmailStr.value}); + var result = await Navigator.pushNamed( + context, Routers.safetyVerificationPage, + arguments: { + "countryCode": state.countryCode, + "account": state.phoneOrEmailStr.value + }); + state.xWidth.value = + (result as Map)['xWidth']; + logic.sendValidationCode(); + } + : null, child: Container( width: 180.w, // height: 60.h,