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

@@ -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,
),