From 0171b4c0a84711f6883006fcf879ed1adf8cbe2c Mon Sep 17 00:00:00 2001 From: liuyanfeng Date: Wed, 13 Aug 2025 08:59:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=99=BB=E5=BD=95=EF=BC=8C=E6=B3=A8?= =?UTF-8?q?=E5=86=8C=E8=BE=93=E5=85=A5=E6=A1=86=E5=85=89=E6=A0=87=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/tools/tf_loginInput.dart | 38 ++++++++++++++++-------------------- 1 file changed, 17 insertions(+), 21 deletions(-) diff --git a/lib/tools/tf_loginInput.dart b/lib/tools/tf_loginInput.dart index e4627341..d72cf1f0 100755 --- a/lib/tools/tf_loginInput.dart +++ b/lib/tools/tf_loginInput.dart @@ -62,7 +62,7 @@ class _LoginInputState extends State { Widget androidView() { bool isPwd = widget.isPwd ?? false; - String pwd = (widget.controller?.text ?? '').replaceAll(RegExp(r'.'), '●'); + // String pwd = (widget.controller?.text ?? '').replaceAll(RegExp(r'.'), '●'); return Container( decoration: BoxDecoration( border: Border(bottom: BorderSide(width: 0.5.h, color: Colors.grey)), @@ -95,14 +95,10 @@ class _LoginInputState extends State { inputFormatters: widget.inputFormatters, textInputAction: TextInputAction.next, keyboardType: isPwd ? TextInputType.emailAddress : null, - style: isPwd - ? TextStyle( + style: TextStyle( fontSize: 22.sp, - color: Colors.transparent, letterSpacing: 2.5, - fontFamily: 'Monospace', - ) - : null, + ), decoration: InputDecoration( //输入里面输入文字内边距设置 contentPadding: const EdgeInsets.only( @@ -122,20 +118,20 @@ class _LoginInputState extends State { : null, ), ), - if (isPwd) - Padding( - padding: EdgeInsets.only( - top: F.sw(skyCall: () => 27.h, xhjCall: () => widget.isLogin! ? 27.h : 39.h)), - child: Text( - pwd, - style: TextStyle( - fontSize: 22.sp, - color: AppColors.darkGrayTextColor, - letterSpacing: 2.0, - fontFamily: 'Monospace', - ), - ), - ), + // if (isPwd) + // Padding( + // padding: EdgeInsets.only( + // top: F.sw(skyCall: () => 27.h, xhjCall: () => widget.isLogin! ? 27.h : 39.h)), + // child: Text( + // pwd, + // style: TextStyle( + // fontSize: 22.sp, + // color: AppColors.darkGrayTextColor, + // letterSpacing: 2.0, + // fontFamily: 'Monospace', + // ), + // ), + // ), ], ), ),