Update: 2026-06-28 23:14:46

This commit is contained in:
Hamza-Ayed
2026-06-28 23:14:46 +03:00
parent 0b36566343
commit 1b6e172a4a
10 changed files with 428 additions and 79 deletions

View File

@@ -41,41 +41,43 @@ class ReviewDriverPage extends StatelessWidget {
itemCount: keys.length,
itemBuilder: (context, index) {
final key = keys[index];
final isSelected = c.currentTabIndex.value == index;
return GestureDetector(
onTap: () => c.currentTabIndex.value = index,
child: Container(
margin: const EdgeInsets.symmetric(horizontal: 3),
padding: const EdgeInsets.symmetric(horizontal: 10, vertical: 6),
decoration: BoxDecoration(
color: isSelected
? AppColor.primaryColor
: AppColor.primaryLight,
borderRadius: BorderRadius.circular(20),
),
child: Row(
mainAxisSize: MainAxisSize.min,
children: [
Icon(
c.tabIcons[key] ?? Icons.image,
size: 16,
color: isSelected ? Colors.white : AppColor.primaryColor,
),
const SizedBox(width: 4),
Text(
c.tabLabels[key] ?? key,
style: TextStyle(
fontSize: 11,
fontWeight:
isSelected ? FontWeight.bold : FontWeight.normal,
color:
isSelected ? Colors.white : AppColor.primaryColor,
return Obx(() {
final isSelected = c.currentTabIndex.value == index;
return GestureDetector(
onTap: () => c.currentTabIndex.value = index,
child: Container(
margin: const EdgeInsets.symmetric(horizontal: 3),
padding: const EdgeInsets.symmetric(horizontal: 10, vertical: 6),
decoration: BoxDecoration(
color: isSelected
? AppColor.primaryColor
: AppColor.primaryLight,
borderRadius: BorderRadius.circular(20),
),
child: Row(
mainAxisSize: MainAxisSize.min,
children: [
Icon(
c.tabIcons[key] ?? Icons.image,
size: 16,
color: isSelected ? Colors.white : AppColor.primaryColor,
),
),
],
const SizedBox(width: 4),
Text(
(c.tabLabels[key] ?? key).tr,
style: TextStyle(
fontSize: 11,
fontWeight:
isSelected ? FontWeight.bold : FontWeight.normal,
color:
isSelected ? Colors.white : AppColor.primaryColor,
),
),
],
),
),
),
);
);
});
},
),
);
@@ -106,8 +108,8 @@ class ReviewDriverPage extends StatelessWidget {
const SizedBox(width: 6),
Text(
c.country.isNotEmpty
? 'Country: ${c.country}'
: 'Detecting country...',
? '${'Country'.tr}: ${c.country.tr}'
: 'Detecting country...'.tr,
style: TextStyle(
fontSize: 13,
fontWeight: FontWeight.w600,