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

@@ -7,12 +7,13 @@ import 'package:customer/models/vendor_model.dart';
import 'package:customer/themes/app_them_data.dart';
import 'package:customer/themes/responsive.dart';
import 'package:customer/themes/round_button_fill.dart';
import 'package:easy_localization/easy_localization.dart';
import 'package:customer/utils/app_router.dart';
import '../../../controllers/theme_controller.dart';
import 'package:customer/utils/network_image_widget.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
import 'package:get/get.dart' hide Trans;
import 'package:get/get.dart';
import '../../../service/fire_store_utils.dart';
import '../../../themes/show_toast_dialog.dart';
import '../../../widget/restaurant_image_view.dart';
@@ -47,7 +48,7 @@ class FavouriteScreen extends StatelessWidget {
children: [
Expanded(
child: Text(
"Your Favourites, All in One Place".tr(),
"Your Favourites, All in One Place".tr,
style: TextStyle(
fontSize: 24,
color:
@@ -83,7 +84,7 @@ class FavouriteScreen extends StatelessWidget {
),
const SizedBox(height: 12),
Text(
"Please Log In to Continue".tr(),
"Please Log In to Continue".tr,
style: TextStyle(
color:
isDark
@@ -96,7 +97,7 @@ class FavouriteScreen 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:
@@ -109,7 +110,7 @@ class FavouriteScreen extends StatelessWidget {
),
const SizedBox(height: 20),
RoundedButtonFill(
title: "Log in".tr(),
title: "Log in".tr,
width: 55,
height: 5.5,
color: AppThemeData.primary300,
@@ -174,8 +175,7 @@ class FavouriteScreen extends StatelessWidget {
vertical: 10,
),
child: Text(
"Favourite Store"
.tr(),
"Favourite Store".tr,
textAlign:
TextAlign.center,
style: TextStyle(
@@ -226,7 +226,7 @@ class FavouriteScreen extends StatelessWidget {
vertical: 10,
),
child: Text(
"Favourite Item".tr(),
"Favourite Item".tr,
textAlign:
TextAlign.center,
style: TextStyle(
@@ -275,7 +275,7 @@ class FavouriteScreen extends StatelessWidget {
? Constant.showEmptyView(
message:
"Favourite Store not found."
.tr(),
.tr,
)
: ListView.builder(
shrinkWrap: true,
@@ -501,7 +501,7 @@ class FavouriteScreen extends StatelessWidget {
5,
),
Text(
"Free Delivery".tr(),
"Free Delivery".tr,
style: TextStyle(
fontSize:
14,
@@ -699,7 +699,7 @@ class FavouriteScreen extends StatelessWidget {
? Constant.showEmptyView(
message:
"Favourite Item not found."
.tr(),
.tr,
)
: ListView.builder(
itemCount:
@@ -734,7 +734,7 @@ class FavouriteScreen extends StatelessWidget {
.hasError) {
return Center(
child: Text(
'${"error".tr()}: ${snapshot.error}',
'${"error".tr}: ${snapshot.error}',
),
);
} else if (snapshot
@@ -833,8 +833,8 @@ class FavouriteScreen extends StatelessWidget {
Text(
productModel.nonveg ==
true
? "Non Veg.".tr()
: "Pure veg.".tr(),
? "Non Veg.".tr
: "Pure veg.".tr,
style: TextStyle(
color:
productModel.nonveg ==