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,7 +1,6 @@
import 'package:easy_localization/easy_localization.dart';
import 'package:flutter/material.dart';
import 'package:flutter_rating_bar/flutter_rating_bar.dart';
import 'package:get/get.dart' hide Trans;
import 'package:get/get.dart';
import '../../constant/constant.dart';
import '../../controllers/rental_review_controller.dart';
import '../../controllers/theme_controller.dart';
@@ -35,8 +34,8 @@ class RentalReviewScreen extends StatelessWidget {
),
title: Text(
controller.ratingModel.value != null
? "Update Review".tr()
: "Add Review".tr(),
? "Update Review".tr
: "Add Review".tr,
style: TextStyle(
color: isDark ? Colors.white : Colors.black,
fontSize: 16,
@@ -136,7 +135,7 @@ class RentalReviewScreen extends StatelessWidget {
Padding(
padding: const EdgeInsets.only(top: 16),
child: Text(
'How is your trip?'.tr(),
'How is your trip?'.tr,
style: TextStyle(
fontSize: 18,
color:
@@ -152,7 +151,7 @@ class RentalReviewScreen extends StatelessWidget {
padding: const EdgeInsets.only(top: 8),
child: Text(
'Your feedback will help us improve \n driving experience better'
.tr(),
.tr,
textAlign: TextAlign.center,
style: TextStyle(
color:
@@ -170,7 +169,7 @@ class RentalReviewScreen extends StatelessWidget {
Padding(
padding: const EdgeInsets.only(top: 20),
child: Text(
'Rate for'.tr(),
'Rate for'.tr,
style: TextStyle(
fontSize: 16,
color:
@@ -229,7 +228,7 @@ class RentalReviewScreen extends StatelessWidget {
Padding(
padding: const EdgeInsets.all(20.0),
child: TextFieldWidget(
hintText: "Type comment....".tr(),
hintText: "Type comment....".tr,
controller: controller.comment.value,
maxLine: 5,
),