|
|
|
|
@ -33,7 +33,11 @@ class _StatusFeedbackPageState extends State<StatusFeedbackPage> {
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
ProjectViewModel projectViewModel = Provider.of(context);
|
|
|
|
|
return BaseView<FeedbackViewModel>(
|
|
|
|
|
onModelReady: (model) => model.getCOC(),
|
|
|
|
|
allowAny: true,
|
|
|
|
|
onModelReady: (model) {
|
|
|
|
|
model.cOCItemList.clear();
|
|
|
|
|
if (projectViewModel.isLogin) model.getCOC();
|
|
|
|
|
},
|
|
|
|
|
builder: (_, model, widget) => AppScaffold(
|
|
|
|
|
baseViewModel: model,
|
|
|
|
|
isShowDecPage: false,
|
|
|
|
|
@ -160,6 +164,7 @@ class _StatusFeedbackPageState extends State<StatusFeedbackPage> {
|
|
|
|
|
countryCode = value;
|
|
|
|
|
});
|
|
|
|
|
}),
|
|
|
|
|
if (model.cOCItemList.length > 0) listData(model.cOCItemList, projectViewModel.isArabic, false),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
@ -178,9 +183,7 @@ class _StatusFeedbackPageState extends State<StatusFeedbackPage> {
|
|
|
|
|
Future.delayed(Duration(seconds: 1), () {
|
|
|
|
|
AppToast.showErrorToast(message: model.error);
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
listData(model.cOCItemList, projectViewModel.isArabic, false);
|
|
|
|
|
}
|
|
|
|
|
} else {}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
disabledColor: Colors.grey,
|
|
|
|
|
|