|
|
|
|
@ -194,8 +194,20 @@ class ServicesWidget extends StatelessWidget {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void handleOnPress(context, GetMenuEntriesList menuEntry) {
|
|
|
|
|
print(menuEntry.requestType);
|
|
|
|
|
var pro = Provider.of<DashboardProviderModel>(context, listen: false);
|
|
|
|
|
if (menuEntry.requestType == "MONTHLY_ATTENDANCE") {
|
|
|
|
|
if (menuEntry.requestType == "PAR") {
|
|
|
|
|
Navigator.pushNamed(context, AppRoutes.performanceEvaluation);
|
|
|
|
|
} else if (menuEntry.requestType == "BASIC_DETAILS") {
|
|
|
|
|
Navigator.pushNamed(context, AppRoutes.basicDetails);
|
|
|
|
|
return;
|
|
|
|
|
} else if (menuEntry.requestType == "PHONE_NUMBERS") {
|
|
|
|
|
Navigator.pushNamed(context, AppRoutes.contactDetails);
|
|
|
|
|
return;
|
|
|
|
|
} else if (menuEntry.requestType == "ADDRESS") {
|
|
|
|
|
Navigator.pushNamed(context, AppRoutes.contactDetails);
|
|
|
|
|
return;
|
|
|
|
|
} else if (menuEntry.requestType == "MONTHLY_ATTENDANCE") {
|
|
|
|
|
Navigator.pushNamed(context, AppRoutes.monthlyAttendance);
|
|
|
|
|
return;
|
|
|
|
|
} else if (menuEntry.requestType == "VACATION_RULE") {
|
|
|
|
|
|