MINOR-FIX: Localization Problem Resolve.

This commit is contained in:
2025-12-04 11:19:11 +05:00
parent e602782edd
commit 841cdf8c21
9 changed files with 69 additions and 49 deletions

View File

@@ -273,7 +273,7 @@ class LoginScreen extends StatelessWidget {
child: Center(
child: Text.rich(
TextSpan(
text: ConstTexts.dontHaveAccount.tr(),
text: "${ConstTexts.dontHaveAccount.tr()} ",
style: AppThemeData.mediumTextStyle(
color:
isDark

View File

@@ -257,7 +257,7 @@ class MobileLoginScreen extends StatelessWidget {
child: Center(
child: Text.rich(
TextSpan(
text: ConstTexts.dontHaveAccount.tr(),
text: "${ConstTexts.dontHaveAccount.tr()} ",
style: AppThemeData.mediumTextStyle(
color:
isDark

View File

@@ -200,7 +200,7 @@ class OtpVerificationScreen extends StatelessWidget {
child: Center(
child: Text.rich(
TextSpan(
text: ConstTexts.dontHaveAccount.tr(),
text: "${ConstTexts.dontHaveAccount.tr()} ",
style: AppThemeData.mediumTextStyle(
color:
isDark

View File

@@ -1,3 +1,4 @@
import 'package:customer/constant/const_texts.dart';
import 'package:customer/constant/constant.dart';
import 'package:customer/controllers/theme_controller.dart';
import 'package:customer/models/user_model.dart';
@@ -39,9 +40,9 @@ class LocationPermissionScreen extends StatelessWidget {
Padding(
padding: const EdgeInsets.symmetric(horizontal: 25),
child: Text(
"Enable Location for a Personalized Experience".tr(),
ConstTexts.enableLocation.tr(),
style: AppThemeData.boldTextStyle(
fontSize: 24,
fontSize: 24.sp,
color:
isDark
? AppThemeData.greyDark900
@@ -54,10 +55,9 @@ class LocationPermissionScreen extends StatelessWidget {
Padding(
padding: const EdgeInsets.symmetric(horizontal: 50),
child: Text(
"Allow location access to discover beauty stores and services near you."
.tr(),
ConstTexts.allowLocation.tr(),
style: AppThemeData.mediumTextStyle(
fontSize: 14,
fontSize: 16.sp,
color:
isDark
? AppThemeData.greyDark600
@@ -69,7 +69,8 @@ class LocationPermissionScreen extends StatelessWidget {
const SizedBox(height: 30),
RoundedButtonFill(
borderRadius: 10.r,
title: "Use current location".tr(),
fontSizes: 14.sp,
title: ConstTexts.useCurrentLocation.tr(),
onPress: () async {
Constant.checkPermission(
context: context,
@@ -137,7 +138,8 @@ class LocationPermissionScreen extends StatelessWidget {
const SizedBox(height: 10),
RoundedButtonFill(
borderRadius: 10.r,
title: "Set from map".tr(),
fontSizes: 14.sp,
title: ConstTexts.setFromMap.tr(),
onPress: () async {
Constant.checkPermission(
context: context,
@@ -230,9 +232,9 @@ class LocationPermissionScreen extends StatelessWidget {
});
},
child: Text(
"Enter Manually location".tr(),
ConstTexts.enterManuallyLocation.tr(),
style: AppThemeData.semiBoldTextStyle(
fontSize: 16,
fontSize: 16.sp,
color:
isDark
? AppThemeData.greyDark900

View File

@@ -1,5 +1,7 @@
import 'dart:developer';
import 'package:customer/constant/const_texts.dart';
import 'package:customer/models/section_model.dart';
import 'package:easy_localization/easy_localization.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart' hide Trans;
@@ -66,7 +68,7 @@ class ServiceListScreen extends StatelessWidget {
Padding(
padding: EdgeInsets.symmetric(horizontal: 16.r),
child: Text(
"Other Services",
ConstTexts.otherServices.tr(),
style: TextStyle(
fontFamily: AppThemeData.bold,
fontWeight: FontWeight.w700,
@@ -80,23 +82,23 @@ class ServiceListScreen extends StatelessWidget {
// Other Services Section
_otherServicesCardMaker(
image: "assets/images/garderob_img.png",
title: "Обновить гардероб",
subtitle: "Доставляем безопасно",
title: ConstTexts.updateYourWardrobe.tr(),
subtitle: ConstTexts.weDeliverSafely.tr(),
),
_otherServicesCardMaker(
image: "assets/images/keys_img.png",
title: "Аренда",
subtitle: "Огромный выбор объявлений!",
title: ConstTexts.rent.tr(),
subtitle: ConstTexts.hugeSelectionOfAds.tr(),
),
_otherServicesCardMaker(
image: "assets/images/cosmetics_img.png",
title: "Косметика",
subtitle: "Более 1000 товаров",
title: ConstTexts.cosmetics.tr(),
subtitle: ConstTexts.moreThan1000Products.tr(),
),
_otherServicesCardMaker(
image: "assets/images/products_img.png",
title: "Продукты питания",
subtitle: "Более 1000 товаров",
title: ConstTexts.foodProducts.tr(),
subtitle: ConstTexts.moreThan1000Products.tr(),
),
SizedBox(height: 45.h),
],
@@ -207,7 +209,7 @@ class ServiceListScreen extends StatelessWidget {
spacing: 12.r,
children: [
_mainCardsMaker(
title: "Food Delivery",
title: ConstTexts.foodDelivery.tr(),
image: "assets/images/food_img.png",
// onTap: () {
// log("Main Card Tapped");
@@ -225,7 +227,7 @@ class ServiceListScreen extends StatelessWidget {
// },
),
_mainCardsMaker(
title: "Delivery",
title: ConstTexts.delivery.tr(),
image: "assets/images/delivery_img.png",
onTap: () {
log("Main Card Tapped");
@@ -274,7 +276,7 @@ class ServiceListScreen extends StatelessWidget {
Expanded(
child: Text(
maxLines: 2,
"Booking Taxi",
ConstTexts.bookingTaxi.tr(),
style: TextStyle(
overflow: TextOverflow.ellipsis,
fontFamily: AppThemeData.bold,
@@ -348,7 +350,7 @@ class ServiceListScreen extends StatelessWidget {
style: TextStyle(
overflow: TextOverflow.ellipsis,
fontFamily: AppThemeData.bold,
fontSize: 14.sp,
fontSize: 15.sp,
fontWeight: FontWeight.w700,
color: AppThemeData.darkGrey,
),

View File

@@ -1,6 +1,5 @@
import 'package:flutter/material.dart';
import 'package:get/get.dart' hide Trans;
import '../../constant/assets.dart';
import '../../controllers/splash_controller.dart';
import '../../themes/app_them_data.dart';