ERM fixes

development_mirza
mirza.shafique 3 years ago
parent 7d7acfa2df
commit 13d8aac22e

@ -404,7 +404,8 @@
"stamp": "ختم",
"addFavoriteList": "هل تريد اضافة {name} لقائمة المفضله",
"feedbackUserExperience": "هذا للحصول على تعليقات حول تجربة المستخدم",
"rateUI": ".1 كيف تريد تقييم التطبيق",
"rateUI": "كيف تريد أن تقيم",
"rateUI2": "ما مدى رضائك عن هذا التطبيق",
"submitSurvey": "ارسال الاستبيان",
"typeHere": "اكتب هنا",
"infoDetail": "تفاصيل المعلومات",

@ -404,7 +404,8 @@
"stamp": "Stamp",
"addFavoriteList": "Do you want to add {name} in your favorite list",
"feedbackUserExperience": "This is to get the feedback about the user experience",
"rateUI": "1. How would you rate this UI?",
"rateUI": "How would you like to rate",
"rateUI2": "How do you satisfied with this application",
"submitSurvey": "Submit Survey",
"typeHere": "Type here",
"infoDetail": "Info Detail",

@ -93,7 +93,7 @@ class _ITGAdsScreenState extends State<ITGAdsScreen> {
@override
void dispose() {
_controller.dispose();
if (_controller != null) _controller.dispose();
// player.stop();
// player.dispose();
super.dispose();
@ -172,7 +172,28 @@ class _ITGAdsScreenState extends State<ITGAdsScreen> {
}
},
),
if (isImage) Image.file(imageFile),
if (isImage)
Column(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.center,
children: [
Image.file(imageFile),
50.height,
Container(padding: const EdgeInsets.all(16), decoration: Utils.containerRadius(MyColors.white, 10), child: const Icon(Icons.thumb_up, color: MyColors.gradiantEndColor)).onPress(
() {
try {
DashboardApiClient().setAdvertisementViewed(masterID!, advertisementData!.advertisementId!).then((value) {
logger.d(value);
Navigator.pop(context);
});
} catch (ex) {
logger.wtf(ex);
Utils.handleException(ex, context, null);
}
},
),
],
),
],
),
);

@ -72,7 +72,7 @@ class _SurveyScreenState extends State<SurveyScreen> {
],
).paddingOnly(left: 22, right: 22, top: 12, bottom: 12).objectContainerView(disablePadding: true),
39.height,
LocaleKeys.rateUI.tr().toText16(),
LocaleKeys.rateUI2.tr().toText16(),
10.height,
GridView(
gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 5, crossAxisSpacing: 7, mainAxisSpacing: 7),
@ -134,7 +134,7 @@ class _SurveyScreenState extends State<SurveyScreen> {
void performAPI() async {
Utils.showLoading(context);
try {
ItgMainRes? res= await DashboardApiClient().submitItgForm(
ItgMainRes? res = await DashboardApiClient().submitItgForm(
comment: reviewText,
masterId: itgResponseData!.notificationMasterId ?? "",
itgList: [
@ -144,15 +144,12 @@ class _SurveyScreenState extends State<SurveyScreen> {
serviceId: itgResponseData!.serviceId ?? 0);
Utils.hideLoading(context);
if(res!.mohemmItgResponseItem!.statusCode==200){
if (res!.mohemmItgResponseItem!.statusCode == 200) {
Utils.showToast("Survey has been submitted successfully");
Navigator.pop(context);
}else{
} else {
Utils.showToast(res.mohemmItgResponseItem!.message.toString());
}
} catch (ex) {
Utils.hideLoading(context);
Utils.handleException(ex, context, (msg) {

Loading…
Cancel
Save