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

@@ -1,10 +1,10 @@
import 'package:customer/constant/const_texts.dart';
import 'package:customer/controllers/cab_review_controller.dart';
import 'package:easy_localization/easy_localization.dart';
import 'package:flutter/material.dart';
import 'package:flutter_rating_bar/flutter_rating_bar.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart' hide Trans;
import 'package:get/get.dart';
import '../../constant/constant.dart';
import '../../controllers/theme_controller.dart';
import '../../themes/app_them_data.dart';
@@ -37,8 +37,8 @@ class CabReviewScreen extends StatelessWidget {
),
title: Text(
controller.ratingModel.value != null
? ConstTexts.updateReview.tr()
: ConstTexts.addReview.tr(),
? ConstTexts.updateReview.tr
: ConstTexts.addReview.tr,
style: TextStyle(
color: isDark ? Colors.white : Colors.black,
fontSize: 16,
@@ -138,7 +138,7 @@ class CabReviewScreen extends StatelessWidget {
Padding(
padding: const EdgeInsets.only(top: 16),
child: Text(
ConstTexts.howWasTrip.tr(),
ConstTexts.howWasTrip.tr,
style: TextStyle(
fontSize: 18,
color:
@@ -153,7 +153,7 @@ class CabReviewScreen extends StatelessWidget {
Padding(
padding: const EdgeInsets.only(top: 8),
child: Text(
ConstTexts.yourFeedbackWillHelp.tr(),
ConstTexts.yourFeedbackWillHelp.tr,
textAlign: TextAlign.center,
style: TextStyle(
color:
@@ -171,7 +171,7 @@ class CabReviewScreen extends StatelessWidget {
Padding(
padding: const EdgeInsets.only(top: 20),
child: Text(
ConstTexts.rateFor.tr(),
ConstTexts.rateFor.tr,
style: TextStyle(
fontSize: 16,
color:
@@ -230,7 +230,7 @@ class CabReviewScreen extends StatelessWidget {
Padding(
padding: const EdgeInsets.all(20.0),
child: TextFieldWidget(
hintText: ConstTexts.typeComment.tr(),
hintText: ConstTexts.typeComment.tr,
controller: controller.comment.value,
maxLine: 5,
),
@@ -244,8 +244,8 @@ class CabReviewScreen extends StatelessWidget {
title:
controller.ratingModel.value !=
null
? ConstTexts.updateReview.tr()
: ConstTexts.addReview.tr(),
? ConstTexts.updateReview.tr
: ConstTexts.addReview.tr,
color: AppThemeData.primary300,
textColor:
isDark