From 4de9417e27463e5497e25981b26a2c3f5164d289 Mon Sep 17 00:00:00 2001 From: Zhou Weidong <502333560@qq.com> Date: Wed, 28 Oct 2026 18:47:51 +0800 Subject: [PATCH] =?UTF-8?q?fix(auth):=20=E6=94=BE=E5=A4=A7=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E6=B3=A8=E5=86=8C=E5=88=86=E6=AE=B5=E7=9A=84=E5=8F=AF?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E5=8C=BA=E5=9F=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pages/auth/auth_form_widgets.dart | 48 +++++++++++++++------------ 1 file changed, 26 insertions(+), 22 deletions(-) diff --git a/lib/pages/auth/auth_form_widgets.dart b/lib/pages/auth/auth_form_widgets.dart index 7402a35..8cd8f0f 100644 --- a/lib/pages/auth/auth_form_widgets.dart +++ b/lib/pages/auth/auth_form_widgets.dart @@ -259,30 +259,34 @@ class _ModeTab extends StatelessWidget { key: segmentKey, behavior: HitTestBehavior.opaque, onTap: onTap, - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - mainAxisSize: MainAxisSize.min, - children: [ - Text( - label, - style: TextStyle( - color: selected ? AppColors.textPrimary : AppColors.muted, - fontSize: AppDimens.followingSegmentFont, - fontWeight: FontWeight.w400, - ), - ), - const SizedBox(height: AppDimens.followingSegmentIndicatorTopGap), - Container( - width: AppDimens.followingSegmentIndicatorWidth, - height: AppDimens.followingSegmentIndicatorHeight, - decoration: BoxDecoration( - color: selected ? AppColors.brandRed : AppColors.transparent, - borderRadius: BorderRadius.circular( - AppDimens.followingSegmentIndicatorRadius, + // 文字 + 指示条只有约 32px 高,补上下各 6px 把可点区域撑到 44。 + child: Padding( + padding: const EdgeInsets.symmetric(vertical: 6), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisSize: MainAxisSize.min, + children: [ + Text( + label, + style: TextStyle( + color: selected ? AppColors.textPrimary : AppColors.muted, + fontSize: AppDimens.followingSegmentFont, + fontWeight: FontWeight.w400, ), ), - ), - ], + const SizedBox(height: AppDimens.followingSegmentIndicatorTopGap), + Container( + width: AppDimens.followingSegmentIndicatorWidth, + height: AppDimens.followingSegmentIndicatorHeight, + decoration: BoxDecoration( + color: selected ? AppColors.brandRed : AppColors.transparent, + borderRadius: BorderRadius.circular( + AppDimens.followingSegmentIndicatorRadius, + ), + ), + ), + ], + ), ), ); }