From 56bee56415f5a1a76f372ad8769c3c2c2465e7b1 Mon Sep 17 00:00:00 2001 From: qzl Date: Thu, 26 Feb 2026 11:59:22 +0800 Subject: [PATCH] fix(auth): fixed width resend button with border --- .../auth/ui/screens/register_verification_screen.dart | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/lib/features/auth/ui/screens/register_verification_screen.dart b/apps/lib/features/auth/ui/screens/register_verification_screen.dart index 654c3b8..2e37ce9 100644 --- a/apps/lib/features/auth/ui/screens/register_verification_screen.dart +++ b/apps/lib/features/auth/ui/screens/register_verification_screen.dart @@ -260,6 +260,7 @@ class _RegisterVerificationViewState extends State { } Widget _buildResendButton(bool canResend, RegisterState state) { + final borderColor = canResend ? AppColors.primary : AppColors.slate300; final textColor = canResend ? AppColors.primary : AppColors.slate400; String text; @@ -273,10 +274,13 @@ class _RegisterVerificationViewState extends State { return GestureDetector( onTap: canResend ? _handleResendCode : null, - behavior: HitTestBehavior.opaque, child: Container( + width: 70, height: 40, - padding: const EdgeInsets.symmetric(horizontal: 12), + decoration: BoxDecoration( + border: Border.all(color: borderColor), + borderRadius: BorderRadius.circular(6), + ), alignment: Alignment.center, child: Text( text,