fix issue # 6 & 7 & 8

merge-update-with-lab-changes
Mohammad Aljmma 5 years ago
parent b913e5a7b7
commit 216c5609c6

@ -44,7 +44,7 @@ class _MyAppointmentsState extends State<MyAppointments>
void initState() {
_tabController = new TabController(length: 3, vsync: this);
WidgetsBinding.instance.addPostFrameCallback((_) {
if (authenticatedUserObject.isLogin) getPatientAppointmentHistory();
if (Provider.of<ProjectViewModel>(context, listen: false).isLogin) getPatientAppointmentHistory();
});
super.initState();
}

Loading…
Cancel
Save