From 43741e24cf3ad04564daeaabf284f5e25c37156f Mon Sep 17 00:00:00 2001 From: haroon amjad Date: Tue, 13 Aug 2024 14:24:51 +0300 Subject: [PATCH] fixes --- lib/pages/BookAppointment/widgets/DoctorView.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/pages/BookAppointment/widgets/DoctorView.dart b/lib/pages/BookAppointment/widgets/DoctorView.dart index 9f54d058..42c5f052 100644 --- a/lib/pages/BookAppointment/widgets/DoctorView.dart +++ b/lib/pages/BookAppointment/widgets/DoctorView.dart @@ -51,8 +51,11 @@ class DoctorView extends StatefulWidget { class _DoctorViewState extends State with AutomaticKeepAliveClientMixin { + late ProjectViewModel projectViewModel; + @override Widget build(BuildContext context) { + projectViewModel = Provider.of(context); super.build(context); return InkWell( onTap: () { @@ -217,7 +220,7 @@ class _DoctorViewState extends State with AutomaticKeepAliveClientMi } getDoctorsProfile(context, DoctorList docObject, {isAppo, bool isContinueDentalPlan = false}) { - int languageID = context.read().isArabic ? 1 : 2; + int languageID = projectViewModel.isArabic ? 1 : 2; GifLoaderDialogUtils.showMyDialog(context); List docProfileList = []; DoctorsListService service = new DoctorsListService();