|
|
|
|
@ -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) {
|
|
|
|
|
|