diff --git a/assets/translations/en_En.json b/assets/translations/en_En.json index aa48f32..5235b29 100644 --- a/assets/translations/en_En.json +++ b/assets/translations/en_En.json @@ -91,5 +91,8 @@ "howWasTrip": "How was your trip?", "yourFeedbackWillHelp": "Your feedback will help us improve \n driving experience better", "rateFor": "Rate for", - "typeComment": "Type comment...." + "typeComment": "Type comment....", + "title": "Title", + "typeDescription": "Type Description...", + "save": "Save" } \ No newline at end of file diff --git a/lib/constant/const_texts.dart b/lib/constant/const_texts.dart index 12e945a..f8c20ec 100644 --- a/lib/constant/const_texts.dart +++ b/lib/constant/const_texts.dart @@ -91,9 +91,9 @@ class ConstTexts { static String yourFeedbackWillHelp = "yourFeedbackWillHelp"; static String rateFor = "rateFor"; static String typeComment = "typeComment"; - static String profile = "profile"; - static String wallet = "wallet"; - static String cabServiceType = "cabServiceType"; + static String title = "title"; + static String typeDescription = "typeDescription"; + static String save = "save"; static String everyRideVerified = "everyRideVerified"; static String allDriversIDCheck = "allDriversIDCheck"; static String intercity = "intercity"; diff --git a/lib/screen_ui/cab_service_screens/complain_screen.dart b/lib/screen_ui/cab_service_screens/complain_screen.dart index b8a6d3d..94402a8 100644 --- a/lib/screen_ui/cab_service_screens/complain_screen.dart +++ b/lib/screen_ui/cab_service_screens/complain_screen.dart @@ -1,3 +1,5 @@ +import 'package:customer/constant/const_texts.dart'; +import 'package:easy_localization/easy_localization.dart'; import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:get/get.dart'; @@ -38,7 +40,7 @@ class ComplainScreen extends StatelessWidget { ), ), const SizedBox(width: 10), - Text("Complain".tr, style: AppThemeData.boldTextStyle(fontSize: 18, color: AppThemeData.grey900)), + Text(ConstTexts.complain.tr(), style: AppThemeData.boldTextStyle(fontSize: 18, color: AppThemeData.grey900)), ], ), ), @@ -50,11 +52,11 @@ class ComplainScreen extends StatelessWidget { padding: const EdgeInsets.all(16), child: Column( children: [ - Obx(() => TextFieldWidget(title: "Title".tr, hintText: "Title".tr, controller: controller.title.value)), + Obx(() => TextFieldWidget(title: ConstTexts.title.tr(), hintText: ConstTexts.title.tr(), controller: controller.title.value)), const SizedBox(height: 10), - Obx(() => TextFieldWidget(title: "Complain".tr, hintText: 'Type Description....'.tr, controller: controller.comment.value, maxLine: 8)), + Obx(() => TextFieldWidget(title:ConstTexts.complain.tr(), hintText: ConstTexts.typeDescription.tr(), controller: controller.comment.value, maxLine: 8)), const SizedBox(height: 20), - RoundedButtonFill( borderRadius: 10.r,title: "Save".tr, color: AppThemeData.primary300, textColor: AppThemeData.grey50, onPress: () => controller.submitComplain()), + RoundedButtonFill( borderRadius: 10.r,title: ConstTexts.save.tr(), color: AppThemeData.primary300, textColor: AppThemeData.grey50, onPress: () => controller.submitComplain()), ], ), ),