BASE: Implement Localization In Complain Screen.
This commit is contained in:
@@ -91,5 +91,8 @@
|
|||||||
"howWasTrip": "How was your trip?",
|
"howWasTrip": "How was your trip?",
|
||||||
"yourFeedbackWillHelp": "Your feedback will help us improve \n driving experience better",
|
"yourFeedbackWillHelp": "Your feedback will help us improve \n driving experience better",
|
||||||
"rateFor": "Rate for",
|
"rateFor": "Rate for",
|
||||||
"typeComment": "Type comment...."
|
"typeComment": "Type comment....",
|
||||||
|
"title": "Title",
|
||||||
|
"typeDescription": "Type Description...",
|
||||||
|
"save": "Save"
|
||||||
}
|
}
|
||||||
@@ -91,9 +91,9 @@ class ConstTexts {
|
|||||||
static String yourFeedbackWillHelp = "yourFeedbackWillHelp";
|
static String yourFeedbackWillHelp = "yourFeedbackWillHelp";
|
||||||
static String rateFor = "rateFor";
|
static String rateFor = "rateFor";
|
||||||
static String typeComment = "typeComment";
|
static String typeComment = "typeComment";
|
||||||
static String profile = "profile";
|
static String title = "title";
|
||||||
static String wallet = "wallet";
|
static String typeDescription = "typeDescription";
|
||||||
static String cabServiceType = "cabServiceType";
|
static String save = "save";
|
||||||
static String everyRideVerified = "everyRideVerified";
|
static String everyRideVerified = "everyRideVerified";
|
||||||
static String allDriversIDCheck = "allDriversIDCheck";
|
static String allDriversIDCheck = "allDriversIDCheck";
|
||||||
static String intercity = "intercity";
|
static String intercity = "intercity";
|
||||||
|
|||||||
@@ -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/material.dart';
|
||||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||||
import 'package:get/get.dart';
|
import 'package:get/get.dart';
|
||||||
@@ -38,7 +40,7 @@ class ComplainScreen extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(width: 10),
|
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),
|
padding: const EdgeInsets.all(16),
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
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),
|
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),
|
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()),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user