|
|
|
|
@ -100,39 +100,39 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
return Scaffold(
|
|
|
|
|
key: _scaffoldState,
|
|
|
|
|
// appBar: AppBar(
|
|
|
|
|
// actions: [
|
|
|
|
|
// IconButton(
|
|
|
|
|
// onPressed: () {
|
|
|
|
|
// data.getITGNotification().then((val) {
|
|
|
|
|
// if (val!.result!.data != null) {
|
|
|
|
|
// if (val.result!.data!.notificationType == "Survey") {
|
|
|
|
|
// Navigator.pushNamed(context, AppRoutes.survey, arguments: val.result!.data);
|
|
|
|
|
// } else {
|
|
|
|
|
// DashboardApiClient().getAdvertisementDetail(val.result!.data!.notificationMasterId ?? "").then(
|
|
|
|
|
// (value) {
|
|
|
|
|
// if (value!.mohemmItgResponseItem!.statusCode == 200) {
|
|
|
|
|
// if (value.mohemmItgResponseItem!.result!.data != null) {
|
|
|
|
|
// Navigator.push(
|
|
|
|
|
// context,
|
|
|
|
|
// MaterialPageRoute(
|
|
|
|
|
// builder: (BuildContext context) => ITGAdsScreen(
|
|
|
|
|
// addMasterId: val.result!.data!.notificationMasterId!,
|
|
|
|
|
// advertisement: value.mohemmItgResponseItem!.result!.data!.advertisement!,
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// );
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// },
|
|
|
|
|
// );
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
// },
|
|
|
|
|
// icon: Icon(Icons.add))
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
appBar: AppBar(
|
|
|
|
|
actions: [
|
|
|
|
|
IconButton(
|
|
|
|
|
onPressed: () {
|
|
|
|
|
data.getITGNotification().then((val) {
|
|
|
|
|
if (val!.result!.data != null) {
|
|
|
|
|
if (val.result!.data!.notificationType == "Survey") {
|
|
|
|
|
Navigator.pushNamed(context, AppRoutes.survey, arguments: val.result!.data);
|
|
|
|
|
} else {
|
|
|
|
|
DashboardApiClient().getAdvertisementDetail(val.result!.data!.notificationMasterId ?? "").then(
|
|
|
|
|
(value) {
|
|
|
|
|
if (value!.mohemmItgResponseItem!.statusCode == 200) {
|
|
|
|
|
if (value.mohemmItgResponseItem!.result!.data != null) {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
MaterialPageRoute(
|
|
|
|
|
builder: (BuildContext context) => ITGAdsScreen(
|
|
|
|
|
addMasterId: val.result!.data!.notificationMasterId!,
|
|
|
|
|
advertisement: value.mohemmItgResponseItem!.result!.data!.advertisement!,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
icon: Icon(Icons.add))
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
body: Column(
|
|
|
|
|
children: [
|
|
|
|
|
Row(
|
|
|
|
|
|