BASE: Switch From EasyLocalization To GetX Localization.
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import 'package:customer/controllers/parcel_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: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';
|
||||
@@ -36,8 +36,8 @@ class ParcelReviewScreen extends StatelessWidget {
|
||||
title: Text(
|
||||
controller.ratingModel.value != null &&
|
||||
controller.ratingModel.value!.id!.isNotEmpty
|
||||
? "Update Review".tr()
|
||||
: "Add Review".tr(),
|
||||
? "Update Review".tr
|
||||
: "Add Review".tr,
|
||||
style: TextStyle(
|
||||
color: isDark ? Colors.white : Colors.black,
|
||||
fontSize: 16,
|
||||
@@ -104,7 +104,7 @@ class ParcelReviewScreen 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:
|
||||
@@ -120,7 +120,7 @@ class ParcelReviewScreen 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:
|
||||
@@ -138,7 +138,7 @@ class ParcelReviewScreen extends StatelessWidget {
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(top: 20),
|
||||
child: Text(
|
||||
'Rate for'.tr(),
|
||||
'Rate for'.tr,
|
||||
style: TextStyle(
|
||||
fontSize: 16,
|
||||
color:
|
||||
@@ -197,7 +197,7 @@ class ParcelReviewScreen 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,
|
||||
),
|
||||
@@ -210,8 +210,8 @@ class ParcelReviewScreen extends StatelessWidget {
|
||||
title:
|
||||
controller.ratingModel.value !=
|
||||
null
|
||||
? "Update Review".tr()
|
||||
: "Add Review".tr(),
|
||||
? "Update Review".tr
|
||||
: "Add Review".tr,
|
||||
color: AppThemeData.primary300,
|
||||
textColor:
|
||||
isDark
|
||||
|
||||
Reference in New Issue
Block a user