BASE: Switch From EasyLocalization To GetX Localization.

This commit is contained in:
2025-12-04 16:56:39 +05:00
parent 157545f1c0
commit bf1d07a048
218 changed files with 2535 additions and 2313 deletions

View File

@@ -9,9 +9,10 @@ import 'package:customer/screen_ui/on_demand_service/on_demand_details_screen.da
import 'package:customer/service/fire_store_utils.dart';
import 'package:customer/themes/app_them_data.dart';
import 'package:customer/themes/round_button_fill.dart';
import 'package:easy_localization/easy_localization.dart';
import 'package:customer/utils/app_router.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart' hide Trans;
import 'package:get/get.dart';
class FavouriteOndemandScreen extends StatelessWidget {
const FavouriteOndemandScreen({super.key});
@@ -35,7 +36,7 @@ class FavouriteOndemandScreen extends StatelessWidget {
children: [
const SizedBox(width: 10),
Text(
"Favourite Services".tr(),
"Favourite Services".tr,
style: TextStyle(
fontFamily: AppThemeData.semiBold,
color:
@@ -60,7 +61,7 @@ class FavouriteOndemandScreen extends StatelessWidget {
Image.asset("assets/images/login.gif", height: 120),
const SizedBox(height: 12),
Text(
"Please Log In to Continue".tr(),
"Please Log In to Continue".tr,
style: TextStyle(
color:
isDark
@@ -73,7 +74,7 @@ class FavouriteOndemandScreen extends StatelessWidget {
const SizedBox(height: 5),
Text(
"Youre not logged in. Please sign in to access your account and explore all features."
.tr(),
.tr,
textAlign: TextAlign.center,
style: TextStyle(
color:
@@ -86,7 +87,7 @@ class FavouriteOndemandScreen extends StatelessWidget {
),
const SizedBox(height: 20),
RoundedButtonFill(
title: "Log in".tr(),
title: "Log in".tr,
width: 55,
height: 5.5,
color: AppThemeData.primary300,
@@ -106,7 +107,7 @@ class FavouriteOndemandScreen extends StatelessWidget {
child:
controller.lstFav.isEmpty
? Constant.showEmptyView(
message: "Favourite Service not found.".tr(),
message: "Favourite Service not found.".tr,
)
: ListView.builder(
shrinkWrap: true,
@@ -603,7 +604,7 @@ class FavouriteOndemandScreen extends StatelessWidget {
return Text(
provider.priceUnit == 'Fixed'
? Constant.amountShow(amount: provider.price)
: '${Constant.amountShow(amount: provider.price ?? "0")}/${'hr'.tr()}',
: '${Constant.amountShow(amount: provider.price ?? "0")}/${'hr'.tr}',
style: TextStyle(
fontSize: 14,
fontWeight: FontWeight.bold,
@@ -616,7 +617,7 @@ class FavouriteOndemandScreen extends StatelessWidget {
Text(
provider.priceUnit == 'Fixed'
? Constant.amountShow(amount: provider.disPrice ?? '0')
: '${Constant.amountShow(amount: provider.disPrice)}/${'hr'.tr()}',
: '${Constant.amountShow(amount: provider.disPrice)}/${'hr'.tr}',
style: TextStyle(
fontSize: 14,
fontWeight: FontWeight.bold,
@@ -627,7 +628,7 @@ class FavouriteOndemandScreen extends StatelessWidget {
Text(
provider.priceUnit == 'Fixed'
? Constant.amountShow(amount: provider.price)
: '${Constant.amountShow(amount: provider.price ?? "0")}/${'hr'.tr()}',
: '${Constant.amountShow(amount: provider.price ?? "0")}/${'hr'.tr}',
style: const TextStyle(
fontSize: 12,
color: Colors.grey,