From 9029953dc4b48430dee391f6abeecf9210aafdc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AB=A0=E6=96=87=E8=BD=A9?= <12812285557@qq.com> Date: Thu, 7 Apr 2022 22:59:59 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E8=BE=93=E5=85=A5=E6=A1=86?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E8=BE=93=E5=85=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pages/sign/widget/psd_text_field.dart | 3 ++- lib/pages/sign/widget/tel_text_field.dart | 8 ++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/pages/sign/widget/psd_text_field.dart b/lib/pages/sign/widget/psd_text_field.dart index 571fd00b..133360ca 100644 --- a/lib/pages/sign/widget/psd_text_field.dart +++ b/lib/pages/sign/widget/psd_text_field.dart @@ -39,6 +39,7 @@ class _PsdTextFieldState extends State { obscuringCharacter: '*', style: TextStyle( color: Colors.black.withOpacity(0.85), + fontSize: 32.sp ), cursorColor: kPrimaryColor, decoration: InputDecoration( @@ -49,7 +50,7 @@ class _PsdTextFieldState extends State { hintText: widget.hintText ?? '请输入密码', counterText: '', suffixIconConstraints: - BoxConstraints(minHeight: 50.w, maxHeight: 50.w), + BoxConstraints(minHeight: 0, maxHeight: 0), suffixIcon: GestureDetector( onTap: () { visible = !visible; diff --git a/lib/pages/sign/widget/tel_text_field.dart b/lib/pages/sign/widget/tel_text_field.dart index 2f5dc668..f890dd45 100644 --- a/lib/pages/sign/widget/tel_text_field.dart +++ b/lib/pages/sign/widget/tel_text_field.dart @@ -32,13 +32,17 @@ class _TelTextFieldState extends State { onChanged: widget.onChange, style: TextStyle( color: Colors.black.withOpacity(0.85), + fontSize: 32.sp ), cursorColor: kPrimaryColor, decoration: InputDecoration( isDense: true, border: InputBorder.none, - prefixIcon: Center(child: '+86|'.text.black.make()), - prefixIconConstraints: BoxConstraints.loose(Size(60, 60)), + prefixIcon: Padding( + padding: EdgeInsets.only(left: 24.w), + child: '+86|'.text.black.make(), + ), + prefixIconConstraints: BoxConstraints(minHeight: 0,minWidth: 0), contentPadding: EdgeInsets.symmetric(vertical: 30.w), hintText: '点击输入手机号', hintStyle: