Update: 2026-06-26 04:04:03
This commit is contained in:
@@ -137,7 +137,7 @@ class CarDetailsTypeToChoose extends StatelessWidget {
|
||||
|
||||
// ── Car Selection List ───────────────────────────────
|
||||
SizedBox(
|
||||
height: 120,
|
||||
height: 134,
|
||||
child: ListView.builder(
|
||||
physics: const BouncingScrollPhysics(),
|
||||
scrollDirection: Axis.horizontal,
|
||||
@@ -303,32 +303,32 @@ class CarDetailsTypeToChoose extends StatelessWidget {
|
||||
child: AnimatedContainer(
|
||||
duration: const Duration(milliseconds: 300),
|
||||
curve: Curves.easeOutCubic,
|
||||
width: 104,
|
||||
width: 122,
|
||||
decoration: BoxDecoration(
|
||||
gradient: isSelected
|
||||
? LinearGradient(
|
||||
begin: Alignment.topLeft,
|
||||
end: Alignment.bottomRight,
|
||||
colors: [
|
||||
AppColor.primaryColor.withAlpha(18),
|
||||
AppColor.primaryColor.withAlpha(8),
|
||||
AppColor.primaryColor.withAlpha(22),
|
||||
AppColor.primaryColor.withAlpha(10),
|
||||
],
|
||||
)
|
||||
: null,
|
||||
color: isSelected ? null : AppColor.secondaryColor,
|
||||
borderRadius: BorderRadius.circular(16),
|
||||
borderRadius: BorderRadius.circular(18),
|
||||
border: Border.all(
|
||||
color: isSelected
|
||||
? AppColor.primaryColor
|
||||
: AppColor.grayColor.withOpacity(0.2),
|
||||
width: isSelected ? 2.0 : 1.0,
|
||||
: AppColor.grayColor.withOpacity(0.25),
|
||||
width: isSelected ? 2.5 : 1.5,
|
||||
),
|
||||
boxShadow: [
|
||||
BoxShadow(
|
||||
color: isSelected
|
||||
? AppColor.primaryColor.withAlpha(40)
|
||||
: Colors.black.withAlpha(12),
|
||||
blurRadius: isSelected ? 12 : 4,
|
||||
? AppColor.primaryColor.withAlpha(50)
|
||||
: Colors.black.withAlpha(16),
|
||||
blurRadius: isSelected ? 14 : 6,
|
||||
offset: const Offset(0, 3),
|
||||
),
|
||||
],
|
||||
@@ -338,11 +338,11 @@ class CarDetailsTypeToChoose extends StatelessWidget {
|
||||
// Selected indicator
|
||||
if (isSelected)
|
||||
Positioned(
|
||||
top: 4,
|
||||
right: 4,
|
||||
top: 5,
|
||||
right: 5,
|
||||
child: Container(
|
||||
width: 18,
|
||||
height: 18,
|
||||
width: 22,
|
||||
height: 22,
|
||||
decoration: BoxDecoration(
|
||||
gradient: LinearGradient(
|
||||
colors: [
|
||||
@@ -358,13 +358,13 @@ class CarDetailsTypeToChoose extends StatelessWidget {
|
||||
),
|
||||
],
|
||||
),
|
||||
child: const Icon(Icons.check, size: 11, color: Colors.white),
|
||||
child: const Icon(Icons.check, size: 13, color: Colors.white),
|
||||
),
|
||||
),
|
||||
|
||||
// Card content
|
||||
Padding(
|
||||
padding: const EdgeInsets.fromLTRB(6, 6, 6, 6),
|
||||
padding: const EdgeInsets.fromLTRB(8, 8, 8, 8),
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
@@ -374,11 +374,11 @@ class CarDetailsTypeToChoose extends StatelessWidget {
|
||||
duration: const Duration(milliseconds: 300),
|
||||
child: Image.asset(
|
||||
carType.image,
|
||||
height: 44,
|
||||
height: 54,
|
||||
fit: BoxFit.contain,
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 4),
|
||||
const SizedBox(height: 2),
|
||||
|
||||
// Car name
|
||||
FittedBox(
|
||||
@@ -388,7 +388,7 @@ class CarDetailsTypeToChoose extends StatelessWidget {
|
||||
style: TextStyle(
|
||||
fontWeight:
|
||||
isSelected ? FontWeight.w800 : FontWeight.w600,
|
||||
fontSize: 12,
|
||||
fontSize: 13,
|
||||
color: isSelected
|
||||
? AppColor.primaryColor
|
||||
: AppColor.writeColor,
|
||||
@@ -397,12 +397,12 @@ class CarDetailsTypeToChoose extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
|
||||
const SizedBox(height: 3),
|
||||
const SizedBox(height: 2),
|
||||
|
||||
// Price tag
|
||||
Container(
|
||||
padding:
|
||||
const EdgeInsets.symmetric(horizontal: 8, vertical: 3),
|
||||
const EdgeInsets.symmetric(horizontal: 8, vertical: 2),
|
||||
decoration: BoxDecoration(
|
||||
color: isSelected
|
||||
? AppColor.primaryColor
|
||||
@@ -417,7 +417,7 @@ class CarDetailsTypeToChoose extends StatelessWidget {
|
||||
child: Text(
|
||||
'${_getPassengerPriceText(carType, controller)} ${CurrencyHelper.currency}',
|
||||
style: TextStyle(
|
||||
fontSize: 11,
|
||||
fontSize: 12,
|
||||
fontWeight: FontWeight.w700,
|
||||
color: isSelected
|
||||
? Colors.white
|
||||
@@ -653,7 +653,6 @@ class CarDetailsTypeToChoose extends StatelessWidget {
|
||||
if (controller.promoFormKey.currentState!
|
||||
.validate()) {
|
||||
controller.applyPromoCodeToPassenger(context);
|
||||
Navigator.of(context).pop();
|
||||
}
|
||||
},
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user