fix(auth): fixed width resend button with border
This commit is contained in:
@@ -260,6 +260,7 @@ class _RegisterVerificationViewState extends State<RegisterVerificationView> {
|
||||
}
|
||||
|
||||
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<RegisterVerificationView> {
|
||||
|
||||
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,
|
||||
|
||||
Reference in New Issue
Block a user