From b54739953a0285970c89489ca9b6c5044d76d0d1 Mon Sep 17 00:00:00 2001 From: Vinayakkadge04 Date: Fri, 14 Nov 2025 16:21:18 +0530 Subject: [PATCH] Fixed bug on pass_card_view --- lib/buy_a_pass/widget/pass_card_view.dart | 244 +++++++++++----------- 1 file changed, 121 insertions(+), 123 deletions(-) diff --git a/lib/buy_a_pass/widget/pass_card_view.dart b/lib/buy_a_pass/widget/pass_card_view.dart index 4f9d5cb..0135d8c 100644 --- a/lib/buy_a_pass/widget/pass_card_view.dart +++ b/lib/buy_a_pass/widget/pass_card_view.dart @@ -26,139 +26,137 @@ class PassCardView extends StatelessWidget { border: Border.all(color:( themeColor ?? Color(0xFFF95FAF)).withOpacity(0.24)), borderRadius: BorderRadius.circular(8.r), ), - child: Expanded( - child: Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - Row( - children: [ - ClipRRect( - borderRadius: BorderRadius.only( - topLeft: Radius.circular(8.r), - bottomLeft: Radius.circular(8.r) - ), - child: Image.asset( - "assets/images/card_banner.png", - scale: 4, - width: 103.w, - height:140.h, - fit: BoxFit.cover, - ), - ), - SizedBox(width: 6.66.w), - Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - CustomText( - text: "Melbourne", - weight: FontWeight.w500, - size: 16.sp, - ), - - Row( - children: [ - Text( - "From ", - style: TextStyle( - color: Colors.black.withOpacity(0.6), - fontSize: 11.sp, - fontWeight: FontWeight.w400, - ), - ), - Text( - "\$80", - style: TextStyle( - color:themeColor, - fontWeight: FontWeight.w500, - fontSize: 24.sp, - ), - ), - Text( - " /Adult", - style: TextStyle( - color: Colors.black.withOpacity(0.8), - fontSize: 11.sp, - fontWeight: FontWeight.w400, - ), - ), - ], - ), - - Row( - children: [ - Text( - "and ", - style: TextStyle( - color: Colors.black.withOpacity(0.6), - fontSize: 11.sp, - fontWeight: FontWeight.w400, - ), - ), - Text( - "\$10", - style: TextStyle( - color: themeColor, - fontWeight: FontWeight.w500, - fontSize: 24.sp, - ), - ), - Text( - " /child", - style: TextStyle( - color: Colors.black.withOpacity(0.8), - fontSize: 11.sp, - fontWeight: FontWeight.w400, - ), - ), - ], - ), - - SizedBox( - width: 193.w, - child: CustomText( - text: - "Dive into an extensive selection of thrilling destinations!", - color: Color(0xFF000000).withOpacity(0.6), - size: 11.sp, - ), - ), - ], - ), - ], - ), - - Container( - width: 35.w, - height: 140.h, - decoration: BoxDecoration( - color: themeColor, + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Row( + children: [ + ClipRRect( borderRadius: BorderRadius.only( - bottomRight: Radius.circular(8.r), - topRight: Radius.circular(8.r), + topLeft: Radius.circular(8.r), + bottomLeft: Radius.circular(8.r) + ), + child: Image.asset( + "assets/images/card_banner.png", + scale: 4, + width: 103.w, + height:140.h, + fit: BoxFit.cover, ), ), - child: RotatedBox( - quarterTurns: -1, - child: Center( - child: RichText( - text: TextSpan( - children: [ - TextSpan( - text: "Flexi ", - style: TextStyle(color: Colors.white, fontSize: 16.sp), + SizedBox(width: 6.66.w), + Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + CustomText( + text: "Melbourne", + weight: FontWeight.w500, + size: 16.sp, + ), + + Row( + children: [ + Text( + "From ", + style: TextStyle( + color: Colors.black.withOpacity(0.6), + fontSize: 11.sp, + fontWeight: FontWeight.w400, ), - TextSpan( - text: "Card", - style: TextStyle(color: Colors.white, fontSize: 12.sp), + ), + Text( + "\$80", + style: TextStyle( + color:themeColor, + fontWeight: FontWeight.w500, + fontSize: 24.sp, ), - ], + ), + Text( + " /Adult", + style: TextStyle( + color: Colors.black.withOpacity(0.8), + fontSize: 11.sp, + fontWeight: FontWeight.w400, + ), + ), + ], + ), + + Row( + children: [ + Text( + "and ", + style: TextStyle( + color: Colors.black.withOpacity(0.6), + fontSize: 11.sp, + fontWeight: FontWeight.w400, + ), + ), + Text( + "\$10", + style: TextStyle( + color: themeColor, + fontWeight: FontWeight.w500, + fontSize: 24.sp, + ), + ), + Text( + " /child", + style: TextStyle( + color: Colors.black.withOpacity(0.8), + fontSize: 11.sp, + fontWeight: FontWeight.w400, + ), + ), + ], + ), + + SizedBox( + width: 193.w, + child: CustomText( + text: + "Dive into an extensive selection of thrilling destinations!", + color: Color(0xFF000000).withOpacity(0.6), + size: 11.sp, ), ), + ], + ), + ], + ), + + Container( + width: 35.w, + height: 140.h, + decoration: BoxDecoration( + color: themeColor, + borderRadius: BorderRadius.only( + bottomRight: Radius.circular(8.r), + topRight: Radius.circular(8.r), + ), + ), + child: RotatedBox( + quarterTurns: -1, + child: Center( + child: RichText( + text: TextSpan( + children: [ + TextSpan( + text: "Flexi ", + style: TextStyle(color: Colors.white, fontSize: 16.sp), + ), + TextSpan( + text: "Card", + style: TextStyle(color: Colors.white, fontSize: 12.sp), + ), + ], + ), ), ), ), - ], - ), + ), + ], ), ); }