diff --git a/ios/Podfile b/ios/Podfile index 264db98d..5495f0ca 100644 --- a/ios/Podfile +++ b/ios/Podfile @@ -48,7 +48,7 @@ post_install do |installer| 'PERMISSION_CAMERA=1', 'PERMISSION_MICROPHONE=1', ## dart: PermissionGroup.calendar - 'PERMISSION_EVENTS=1', + 'PERMISSION_EVENTS_FULL_ACCESS=1', ## dart: PermissionGroup.reminders 'PERMISSION_REMINDERS=1', ] diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist index 65a0bf75..43474d39 100644 --- a/ios/Runner/Info.plist +++ b/ios/Runner/Info.plist @@ -59,6 +59,10 @@ This App requires access to Bluetooth to connect blood pressure & blood sugar devices with the app to analyze the data. NSCalendarsUsageDescription This app requires calendar access to set reminders for Virtual & Normal Appointments. + NSCalendarsWriteOnlyAccessUsageDescription + This app requires calendar access to set reminders for Virtual & Normal Appointments. + NSCalendarsFullAccessUsageDescription + This app requires calendar access to set reminders for Virtual & Normal Appointments. NSCameraUsageDescription This app requires camera access to enable virtual consultation between patient & doctor NSContactsUsageDescription diff --git a/lib/main.dart b/lib/main.dart index 44be8712..1842c15e 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -161,7 +161,7 @@ class _MyApp extends State { builder: (_, mchild) { return MediaQuery( data: MediaQuery.of(context).copyWith( - textScaleFactor: 1.0, + textScaler: TextScaler.linear(1.0), ), //set desired text scale factor here child: mchild! ); diff --git a/lib/pages/BookAppointment/book_reminder_page.dart b/lib/pages/BookAppointment/book_reminder_page.dart index 6a124fd2..6615f092 100644 --- a/lib/pages/BookAppointment/book_reminder_page.dart +++ b/lib/pages/BookAppointment/book_reminder_page.dart @@ -82,10 +82,10 @@ class _BookReminderPageState extends State { widget.docObject.projectName!, null, null, - widget.docObject.nationalityFlagURL!, - widget.docObject.doctorRate!, + widget.docObject.nationalityFlagURL ?? "", + widget.docObject.doctorRate?? 0, null, - widget.docObject.noOfPatientsRate!, + widget.docObject.noOfPatientsRate ?? 0, "", ), isNeedToShowButton: false, diff --git a/lib/pages/BookAppointment/widgets/reminder_dialog.dart b/lib/pages/BookAppointment/widgets/reminder_dialog.dart index a68fbfa4..91c04833 100644 --- a/lib/pages/BookAppointment/widgets/reminder_dialog.dart +++ b/lib/pages/BookAppointment/widgets/reminder_dialog.dart @@ -35,7 +35,6 @@ showReminderDialog(BuildContext context, DateTime dateTime, String doctorName, S } } else { if (await Permission.calendarFullAccess.request().isGranted) { - print(await Permission.calendarFullAccess.request().isGranted); _showReminderDialog(context, dateTime, doctorName, eventId, appoDateFormatted, appoTimeFormatted, onSuccess: onSuccess, title: title ?? "", description: description ?? "", onMultiDateSuccess: onMultiDateSuccess ?? (int) {}); } diff --git a/lib/pages/landing/landing_page.dart b/lib/pages/landing/landing_page.dart index 02850e7c..13fa4e23 100644 --- a/lib/pages/landing/landing_page.dart +++ b/lib/pages/landing/landing_page.dart @@ -641,7 +641,7 @@ class _LandingPageState extends State with WidgetsBindingObserver { projectViewModel.analytics.setUser(AuthenticatedUser()); } if (Platform.isIOS) { - String voipToken = await sharedPref.getString(APNS_TOKEN); + String? voipToken = await sharedPref.getString(APNS_TOKEN?? ""); // getOneSignalVOIPToken(voipToken); } } diff --git a/lib/uitl/location_util.dart b/lib/uitl/location_util.dart index 402d9f57..a40277c7 100644 --- a/lib/uitl/location_util.dart +++ b/lib/uitl/location_util.dart @@ -128,8 +128,8 @@ class LocationUtils { heading: 0.0, speed: 0.0, speedAccuracy: 1, - altitudeAccuracy: 0, - headingAccuracy: 0, + altitudeAccuracy: 0, + headingAccuracy: 0, // Added by Aamir ), );