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) {
|
Widget _buildResendButton(bool canResend, RegisterState state) {
|
||||||
|
final borderColor = canResend ? AppColors.primary : AppColors.slate300;
|
||||||
final textColor = canResend ? AppColors.primary : AppColors.slate400;
|
final textColor = canResend ? AppColors.primary : AppColors.slate400;
|
||||||
|
|
||||||
String text;
|
String text;
|
||||||
@@ -273,10 +274,13 @@ class _RegisterVerificationViewState extends State<RegisterVerificationView> {
|
|||||||
|
|
||||||
return GestureDetector(
|
return GestureDetector(
|
||||||
onTap: canResend ? _handleResendCode : null,
|
onTap: canResend ? _handleResendCode : null,
|
||||||
behavior: HitTestBehavior.opaque,
|
|
||||||
child: Container(
|
child: Container(
|
||||||
|
width: 70,
|
||||||
height: 40,
|
height: 40,
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 12),
|
decoration: BoxDecoration(
|
||||||
|
border: Border.all(color: borderColor),
|
||||||
|
borderRadius: BorderRadius.circular(6),
|
||||||
|
),
|
||||||
alignment: Alignment.center,
|
alignment: Alignment.center,
|
||||||
child: Text(
|
child: Text(
|
||||||
text,
|
text,
|
||||||
|
|||||||
Reference in New Issue
Block a user