BASE: Imlement Localization In Auth.

This commit is contained in:
2025-12-03 15:25:19 +05:00
parent 2736727592
commit 3e18352abe
24 changed files with 3484 additions and 795 deletions

View File

@@ -92,8 +92,8 @@ class CabBookingScreen extends StatelessWidget {
'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
userAgentPackageName:
Platform.isAndroid
? "com.emart.customer"
: "com.emart.customer.ios",
? "felix.fondex.uz"
: "felix.fondex.uz.ios",
),
flutterMap.MarkerLayer(
markers: controller.osmMarker,
@@ -1408,7 +1408,6 @@ class CabBookingScreen extends StatelessWidget {
),
),
const SizedBox(height: 10),
Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(15),
@@ -1636,6 +1635,7 @@ class CabBookingScreen extends StatelessWidget {
),
),
const SizedBox(height: 20),
Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(15),
@@ -1778,7 +1778,13 @@ class CabBookingScreen extends StatelessWidget {
),
SizedBox(width: 10.w),
Text(
controller.selectedPaymentMethod.value == "cod" ? "Наличными" : controller.selectedPaymentMethod.value.tr,
controller.selectedPaymentMethod.value ==
"cod"
? "Наличными"
: controller
.selectedPaymentMethod
.value
.tr,
textAlign: TextAlign.start,
style: AppThemeData.boldTextStyle(
fontSize: 16,
@@ -1853,13 +1859,13 @@ class CabBookingScreen extends StatelessWidget {
SizedBox(height: 30),
Text(
"Waiting for driver....".tr,
style: AppThemeData.boldTextStyle(
fontSize: 18.sp,
color:
isDark
? AppThemeData.greyDark900
: AppThemeData.darkGrey,
),
style: AppThemeData.boldTextStyle(
fontSize: 18.sp,
color:
isDark
? AppThemeData.greyDark900
: AppThemeData.darkGrey,
),
),
Image.asset('assets/loader.gif', width: 250),
RoundedButtonFill(
@@ -2946,12 +2952,16 @@ class CabBookingScreen extends StatelessWidget {
borderRadius: BorderRadius.circular(8),
),
),
child: value == PaymentGateway.click || value == PaymentGateway.payme ? Image.asset(image) : Padding(
padding: EdgeInsets.all(
value.name == "payFast" ? 0 : 8.0,
),
child: Image.asset(image),
),
child:
value == PaymentGateway.click ||
value == PaymentGateway.payme
? Image.asset(image)
: Padding(
padding: EdgeInsets.all(
value.name == "payFast" ? 0 : 8.0,
),
child: Image.asset(image),
),
),
const SizedBox(width: 10),
value.name == "wallet"
@@ -2996,7 +3006,9 @@ class CabBookingScreen extends StatelessWidget {
)
: Expanded(
child: Text(
value.name == "cod" ? "Наличными" : value.name.capitalizeString(),
value.name == "cod"
? "Наличными"
: value.name.capitalizeString(),
textAlign: TextAlign.start,
style: AppThemeData.semiBoldTextStyle(
fontSize: 16,