From 359a17779785e59f5d11726bff8809ab7ac82079 Mon Sep 17 00:00:00 2001 From: Sultan khan <> Date: Mon, 27 Nov 2023 14:28:03 +0300 Subject: [PATCH] updates --- lib/pages/DrawerPages/family/my-family.dart | 9 +++++---- .../notifications/notification_details_page.dart | 6 ++++-- lib/pages/medical/my_invoices/invoice_detail_page.dart | 4 ++-- lib/uitl/location_util.dart | 4 ++-- 4 files changed, 13 insertions(+), 10 deletions(-) diff --git a/lib/pages/DrawerPages/family/my-family.dart b/lib/pages/DrawerPages/family/my-family.dart index be746e58..bc127018 100644 --- a/lib/pages/DrawerPages/family/my-family.dart +++ b/lib/pages/DrawerPages/family/my-family.dart @@ -218,7 +218,7 @@ class _MyFamily extends State with TickerProviderStateMixin { child: Row( mainAxisAlignment: MainAxisAlignment.center, children: [ - SvgPicture.asset("assets/images/new-design/delete.svg", height: 16, color: isFemale ? Color(0Xff5A282E) : Colors.white), + SvgPicture.asset("assets/images/new-design/delete.svg", height: 22, color: isFemale ? Color(0Xff5A282E) : Colors.white), SizedBox(width: 4), Texts(TranslationBase.of(context).delete, color: isFemale ? Color(0Xff5A282E) : Colors.white, fontSize: 12, fontWeight: FontWeight.w600), ], @@ -404,7 +404,7 @@ class _MyFamily extends State with TickerProviderStateMixin { child: Icon( Icons.delete, color: Colors.red, - size: 12, + size: 22, ), onTap: () { acceptRemoveRequest(result.iD, 4, context); @@ -533,7 +533,7 @@ class _MyFamily extends State with TickerProviderStateMixin { request["Status"] = status; this.familyFileProvider.acceptRejectFamily(request).then((value) async { await refreshFamily(context); - GifLoaderDialogUtils.hideDialog(context); + await GifLoaderDialogUtils.hideDialog(context); }); } @@ -553,7 +553,7 @@ class _MyFamily extends State with TickerProviderStateMixin { List sentRecordsList = []; Future getFamilyFiles() async { - late GetAllSharedRecordsByStatusResponse familySharedRecords; + GetAllSharedRecordsByStatusResponse? familySharedRecords; if (await sharedPref.getObject(FAMILY_FILE) != null) { familySharedRecords = GetAllSharedRecordsByStatusResponse.fromJson(await sharedPref.getObject(FAMILY_FILE)); } @@ -585,6 +585,7 @@ class _MyFamily extends State with TickerProviderStateMixin { GifLoaderDialogUtils.hideDialog(context); } catch (ex) { familySharedRecords = GetAllSharedRecordsByStatusResponse(getAllSharedRecordsByStatusList: []); + GifLoaderDialogUtils.hideDialog(context); } } diff --git a/lib/pages/DrawerPages/notifications/notification_details_page.dart b/lib/pages/DrawerPages/notifications/notification_details_page.dart index 9cbef4a0..05acad0a 100644 --- a/lib/pages/DrawerPages/notifications/notification_details_page.dart +++ b/lib/pages/DrawerPages/notifications/notification_details_page.dart @@ -21,7 +21,7 @@ class _NotificationsDetailsPageState extends State { @override void initState() { _controller = YoutubePlayerController( - initialVideoId: getVideoURL()!, + initialVideoId: getVideoURL(), flags: YoutubePlayerFlags( autoPlay: true, mute: false, @@ -47,12 +47,14 @@ class _NotificationsDetailsPageState extends State { return monthName + ',${d.day},${d.year}, $hour'; } - String? getVideoURL() { + String getVideoURL() { if (widget.notification.videoURL != null && widget.notification.notificationType == "2") { String videoId; videoId = YoutubePlayer.convertUrlToId(widget.notification.videoURL)!; print(videoId); // BBAyRBTfsOU return videoId; + }else{ + return ""; } } diff --git a/lib/pages/medical/my_invoices/invoice_detail_page.dart b/lib/pages/medical/my_invoices/invoice_detail_page.dart index fc82b4b7..e676aefe 100644 --- a/lib/pages/medical/my_invoices/invoice_detail_page.dart +++ b/lib/pages/medical/my_invoices/invoice_detail_page.dart @@ -59,12 +59,12 @@ class _InvoiceDetailState extends State { widget.doctor.name!, widget.doctor.doctorID!, widget.doctor.doctorImageURL!, - widget.doctor.speciality!, + widget.doctor.speciality??[""], widget.doctor.clinicName!, widget.doctor.projectName!, DateUtil.convertStringToDate(widget.doctor.date), null, - widget.doctor.nationalityFlagURL!, + widget.doctor.nationalityFlagURL != null ? widget.doctor.nationalityFlagURL! : "" , widget.doctor.doctorRate, widget.doctor.actualDoctorRate, widget.doctor.noOfPatientsRate ?? 0, diff --git a/lib/uitl/location_util.dart b/lib/uitl/location_util.dart index a40277c7..0df949ba 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 ), );