Update: 2026-06-26 02:00:23
This commit is contained in:
@@ -140,7 +140,7 @@ class ReviewDriverPage extends StatelessWidget {
|
||||
children: [
|
||||
Icon(Icons.image_not_supported, size: 48, color: Colors.grey[400]),
|
||||
const SizedBox(height: 8),
|
||||
Text('No image available', style: TextStyle(color: Colors.grey[500])),
|
||||
Text('No image available'.tr, style: TextStyle(color: Colors.grey[500])),
|
||||
],
|
||||
),
|
||||
),
|
||||
@@ -159,7 +159,7 @@ class ReviewDriverPage extends StatelessWidget {
|
||||
height: 180,
|
||||
color: Colors.grey[200],
|
||||
child: Center(
|
||||
child: Text('Failed to load image',
|
||||
child: Text('Failed to load image'.tr,
|
||||
style: TextStyle(color: Colors.grey[500])),
|
||||
),
|
||||
),
|
||||
@@ -193,7 +193,7 @@ class ReviewDriverPage extends StatelessWidget {
|
||||
return Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text('${c.country} - Criminal Record',
|
||||
Text('${c.country} - ${'Criminal Record'.tr}',
|
||||
style: const TextStyle(fontSize: 18, fontWeight: FontWeight.bold)),
|
||||
const Divider(),
|
||||
Card(
|
||||
@@ -223,7 +223,7 @@ class ReviewDriverPage extends StatelessWidget {
|
||||
return Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text('Profile Photo',
|
||||
Text('Profile Photo'.tr,
|
||||
style: const TextStyle(fontSize: 18, fontWeight: FontWeight.bold)),
|
||||
const Divider(),
|
||||
Card(
|
||||
@@ -237,7 +237,7 @@ class ReviewDriverPage extends StatelessWidget {
|
||||
Expanded(
|
||||
child: Text(
|
||||
'Verify the profile photo matches the person in the ID '
|
||||
'and Driver License photos above.',
|
||||
'and Driver License photos above.'.tr,
|
||||
style: TextStyle(color: Colors.blue[800]),
|
||||
),
|
||||
),
|
||||
@@ -256,7 +256,7 @@ class ReviewDriverPage extends StatelessWidget {
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
'${c.country} - ${c.tabLabels[tabKey] ?? tabKey}',
|
||||
'${c.country} - ${(c.tabLabels[tabKey] ?? tabKey).tr}',
|
||||
style: const TextStyle(fontSize: 18, fontWeight: FontWeight.bold),
|
||||
),
|
||||
const Divider(),
|
||||
@@ -268,13 +268,13 @@ class ReviewDriverPage extends StatelessWidget {
|
||||
String _getCriminalRecordHint(String country) {
|
||||
switch (country) {
|
||||
case 'Syria':
|
||||
return 'Review the "لا حكم عليه" document. Verify name matches driver.';
|
||||
return 'Review the "لا حكم عليه" document. Verify name matches driver.'.tr;
|
||||
case 'Jordan':
|
||||
return 'Review the "عدم محكومية" document. Verify name matches driver.';
|
||||
return 'Review the "عدم محكومية" document. Verify name matches driver.'.tr;
|
||||
case 'Egypt':
|
||||
return 'Review the "فيش وتشبيه" document. Verify name matches driver.';
|
||||
return 'Review the "فيش وتشبيه" document. Verify name matches driver.'.tr;
|
||||
default:
|
||||
return 'Review the criminal record document. Verify name matches driver.';
|
||||
return 'Review the criminal record document. Verify name matches driver.'.tr;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -481,7 +481,7 @@ class ReviewDriverPage extends StatelessWidget {
|
||||
const EdgeInsets.symmetric(horizontal: 12, vertical: 14),
|
||||
),
|
||||
items: ReviewDriverController.kFuelOptions.map((v) {
|
||||
return DropdownMenuItem(value: v, child: Text(v));
|
||||
return DropdownMenuItem(value: v, child: Text(v.tr));
|
||||
}).toList(),
|
||||
onChanged: (v) {
|
||||
if (v != null) c.selectedFuel.value = v;
|
||||
|
||||
Reference in New Issue
Block a user