Update: 2026-07-06 03:45:17
This commit is contained in:
@@ -138,7 +138,7 @@ class CarDetailsTypeToChoose extends StatelessWidget {
|
||||
|
||||
// ── Car Selection List ───────────────────────────────
|
||||
SizedBox(
|
||||
height: 134,
|
||||
height: 115,
|
||||
child: ListView.builder(
|
||||
physics: const BouncingScrollPhysics(),
|
||||
scrollDirection: Axis.horizontal,
|
||||
@@ -158,12 +158,13 @@ class CarDetailsTypeToChoose extends StatelessWidget {
|
||||
),
|
||||
|
||||
// ── Competitor Price Savings Badge ─────────────────────
|
||||
if (controller.savingsLabel != null &&
|
||||
if (controller.savingsLabel != null &&
|
||||
controller.savingsLabel!.isNotEmpty)
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 20, vertical: 4),
|
||||
padding: const EdgeInsets.symmetric(
|
||||
horizontal: 20, vertical: 4),
|
||||
child: CompetitorPriceBadge(
|
||||
badgeText: controller.savingsLabel,
|
||||
savingsLabel: controller.savingsLabel,
|
||||
savingsPercent: controller.savingsPercent ?? 0.0,
|
||||
),
|
||||
),
|
||||
@@ -315,7 +316,7 @@ class CarDetailsTypeToChoose extends StatelessWidget {
|
||||
child: AnimatedContainer(
|
||||
duration: const Duration(milliseconds: 300),
|
||||
curve: Curves.easeOutCubic,
|
||||
width: 122,
|
||||
width: 105,
|
||||
decoration: BoxDecoration(
|
||||
gradient: isSelected
|
||||
? LinearGradient(
|
||||
@@ -386,7 +387,7 @@ class CarDetailsTypeToChoose extends StatelessWidget {
|
||||
duration: const Duration(milliseconds: 300),
|
||||
child: Image.asset(
|
||||
carType.image,
|
||||
height: 54,
|
||||
height: 44,
|
||||
fit: BoxFit.contain,
|
||||
),
|
||||
),
|
||||
@@ -429,8 +430,8 @@ class CarDetailsTypeToChoose extends StatelessWidget {
|
||||
child: Text(
|
||||
'${_getPassengerPriceText(carType, controller)} ${CurrencyHelper.currency}',
|
||||
style: TextStyle(
|
||||
fontSize: 12,
|
||||
fontWeight: FontWeight.w700,
|
||||
fontSize: 14.5,
|
||||
fontWeight: FontWeight.w800,
|
||||
color: isSelected
|
||||
? Colors.white
|
||||
: AppColor.writeColor.withOpacity(0.8),
|
||||
|
||||
Reference in New Issue
Block a user