From 216c5609c664d371a0723dfb2b3afb5c7f3ba3e8 Mon Sep 17 00:00:00 2001 From: Mohammad Aljmma Date: Sun, 15 Nov 2020 14:47:38 +0200 Subject: [PATCH] fix issue # 6 & 7 & 8 --- lib/pages/MyAppointments/MyAppointments.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pages/MyAppointments/MyAppointments.dart b/lib/pages/MyAppointments/MyAppointments.dart index a7d7ba42..be50efb7 100644 --- a/lib/pages/MyAppointments/MyAppointments.dart +++ b/lib/pages/MyAppointments/MyAppointments.dart @@ -44,7 +44,7 @@ class _MyAppointmentsState extends State void initState() { _tabController = new TabController(length: 3, vsync: this); WidgetsBinding.instance.addPostFrameCallback((_) { - if (authenticatedUserObject.isLogin) getPatientAppointmentHistory(); + if (Provider.of(context, listen: false).isLogin) getPatientAppointmentHistory(); }); super.initState(); }