BASE: Implement Localization In Complain Screen.
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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()),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user