diff --git a/Frontend/lib/mih_components/mih_package_components/mih_business_profile_preview.dart b/Frontend/lib/mih_components/mih_package_components/mih_business_profile_preview.dart index e8968df5..4249084c 100644 --- a/Frontend/lib/mih_components/mih_package_components/mih_business_profile_preview.dart +++ b/Frontend/lib/mih_components/mih_package_components/mih_business_profile_preview.dart @@ -52,8 +52,7 @@ class _MihBusinessProfilePreviewState extends State { return Row( children: [ FutureBuilder( - future: MihFileApi.getMinioFileUrl( - widget.business.logo_path, context), + future: MihFileApi.getMinioFileUrl(widget.business.logo_path), builder: (context, asyncSnapshot) { if (asyncSnapshot.connectionState == ConnectionState.done && asyncSnapshot.hasData) { diff --git a/Frontend/lib/mih_components/mih_package_components/mih_personal_profile_preview.dart b/Frontend/lib/mih_components/mih_package_components/mih_personal_profile_preview.dart index b5bf402f..670317b3 100644 --- a/Frontend/lib/mih_components/mih_package_components/mih_personal_profile_preview.dart +++ b/Frontend/lib/mih_components/mih_package_components/mih_personal_profile_preview.dart @@ -27,8 +27,7 @@ class _MihPersonalProfilePreviewState extends State { @override void initState() { super.initState(); - futureImageUrl = - MihFileApi.getMinioFileUrl(widget.user.pro_pic_path, context); + futureImageUrl = MihFileApi.getMinioFileUrl(widget.user.pro_pic_path); } @override diff --git a/Frontend/lib/mih_packages/mih_home/mih_home.dart b/Frontend/lib/mih_packages/mih_home/mih_home.dart index 7a223326..90a71286 100644 --- a/Frontend/lib/mih_packages/mih_home/mih_home.dart +++ b/Frontend/lib/mih_packages/mih_home/mih_home.dart @@ -96,14 +96,12 @@ class _MihHomeState extends State { // Business Profile Set Up aleary logoUrl = await MihFileApi.getMinioFileUrl( context.read().business!.logo_path, - context, ); context.read().setBusinessProfilePicUrl(logoUrl); // Get Business User await MihMyBusinessUserServices().getBusinessUser(context); signatureUrl = await MihFileApi.getMinioFileUrl( context.read().businessUser!.sig_path, - context, ); context .read() @@ -184,7 +182,6 @@ class _MihHomeState extends State { if (!mounted) return; url = await MihFileApi.getMinioFileUrl( context.read().user!.pro_pic_path, - context, ); context.read().setUserProfilePicUrl(url); } diff --git a/Frontend/lib/mih_packages/mine_sweeper/package_tools/mih_mine_sweeper_leader_board.dart b/Frontend/lib/mih_packages/mine_sweeper/package_tools/mih_mine_sweeper_leader_board.dart index b7f62cab..d9961c72 100644 --- a/Frontend/lib/mih_packages/mine_sweeper/package_tools/mih_mine_sweeper_leader_board.dart +++ b/Frontend/lib/mih_packages/mine_sweeper/package_tools/mih_mine_sweeper_leader_board.dart @@ -34,7 +34,7 @@ class _MihMineSweeperLeaderBoardState extends State { List?> userPictures = []; String userPicUrl = ""; for (final ranking in mineSweeperProvider.leaderboard!) { - userPicUrl = await MihFileApi.getMinioFileUrl(ranking.proPicUrl, context); + userPicUrl = await MihFileApi.getMinioFileUrl(ranking.proPicUrl); userPictures.add(NetworkImage(userPicUrl)); } mineSweeperProvider.setLeaderboardUserPictures( diff --git a/Frontend/lib/mih_packages/mzansi_profile/business_profile/package_tools/mih_business_details_set_up.dart b/Frontend/lib/mih_packages/mzansi_profile/business_profile/package_tools/mih_business_details_set_up.dart index ab37bd22..190c3055 100644 --- a/Frontend/lib/mih_packages/mzansi_profile/business_profile/package_tools/mih_business_details_set_up.dart +++ b/Frontend/lib/mih_packages/mzansi_profile/business_profile/package_tools/mih_business_details_set_up.dart @@ -98,7 +98,7 @@ class _MihBusinessDetailsSetUpState extends State { await uploadFile(mzansiProfileProvider, newSelectedLogoPic); if (successUpload) { String logoUrl = await MihFileApi.getMinioFileUrl( - mzansiProfileProvider.business!.logo_path, context); + mzansiProfileProvider.business!.logo_path); mzansiProfileProvider.setBusinessProfilePicUrl(logoUrl); } await createBusinessUserAPICall(mzansiProfileProvider); @@ -123,7 +123,7 @@ class _MihBusinessDetailsSetUpState extends State { await uploadFile(mzansiProfileProvider, newSelectedSignaturePic); if (successUpload) { String sigUrl = await MihFileApi.getMinioFileUrl( - mzansiProfileProvider.businessUser!.sig_path, context); + mzansiProfileProvider.businessUser!.sig_path); mzansiProfileProvider.setBusinessUserSignatureUrl(sigUrl); String message = "Your business profile is now live! You can now start connecting with customers and growing your business."; diff --git a/Frontend/lib/mih_packages/mzansi_profile/business_profile/package_tools/mih_business_details_view.dart b/Frontend/lib/mih_packages/mzansi_profile/business_profile/package_tools/mih_business_details_view.dart index 1a379b81..2e4b0d32 100644 --- a/Frontend/lib/mih_packages/mzansi_profile/business_profile/package_tools/mih_business_details_view.dart +++ b/Frontend/lib/mih_packages/mzansi_profile/business_profile/package_tools/mih_business_details_view.dart @@ -36,7 +36,7 @@ class _MihBusinessDetailsViewState extends State { MzansiDirectoryProvider directoryProvider = context.read(); futureImageUrl = MihFileApi.getMinioFileUrl( - directoryProvider.selectedBusiness!.logo_path, context); + directoryProvider.selectedBusiness!.logo_path); } @override diff --git a/Frontend/lib/mih_packages/mzansi_profile/business_profile/package_tools/mih_business_qr_code.dart b/Frontend/lib/mih_packages/mzansi_profile/business_profile/package_tools/mih_business_qr_code.dart index 109de674..23079487 100644 --- a/Frontend/lib/mih_packages/mzansi_profile/business_profile/package_tools/mih_business_qr_code.dart +++ b/Frontend/lib/mih_packages/mzansi_profile/business_profile/package_tools/mih_business_qr_code.dart @@ -344,7 +344,7 @@ class _MihBusinessQrCodeState extends State { business = profileProvider.business!; } _checkUserSession(); - futureImageUrl = MihFileApi.getMinioFileUrl(business.logo_path, context); + futureImageUrl = MihFileApi.getMinioFileUrl(business.logo_path); qrCodedata = "${AppEnviroment.baseAppUrl}/business-profile/view?business_id="; } diff --git a/Frontend/lib/mih_packages/mzansi_profile/personal_profile/package_tools/mih_personal_profile_view.dart b/Frontend/lib/mih_packages/mzansi_profile/personal_profile/package_tools/mih_personal_profile_view.dart index 58a005c1..502c240e 100644 --- a/Frontend/lib/mih_packages/mzansi_profile/personal_profile/package_tools/mih_personal_profile_view.dart +++ b/Frontend/lib/mih_packages/mzansi_profile/personal_profile/package_tools/mih_personal_profile_view.dart @@ -34,7 +34,7 @@ class _MihPersonalProfileViewState extends State { MzansiDirectoryProvider directoryProvider = context.read(); futureImageUrl = MihFileApi.getMinioFileUrl( - directoryProvider.selectedUser!.pro_pic_path, context); + directoryProvider.selectedUser!.pro_pic_path); } @override diff --git a/Frontend/lib/mih_packages/patient_manager/pat_manager/list_builders/build_my_patient_list_list.dart b/Frontend/lib/mih_packages/patient_manager/pat_manager/list_builders/build_my_patient_list_list.dart index 1c6406c0..a77f4840 100644 --- a/Frontend/lib/mih_packages/patient_manager/pat_manager/list_builders/build_my_patient_list_list.dart +++ b/Frontend/lib/mih_packages/patient_manager/pat_manager/list_builders/build_my_patient_list_list.dart @@ -531,8 +531,7 @@ class _BuildPatientsListState extends State { patientManagerProvider.myPaitentList![index].app_id, context) .then((user) async { user; - String url = - await MihFileApi.getMinioFileUrl(user!.pro_pic_path, context); + String url = await MihFileApi.getMinioFileUrl(user!.pro_pic_path); patientManagerProvider.setSelectedPatientProfilePicUrl(url); }); patientProfileChoicePopUp( diff --git a/Frontend/lib/mih_packages/patient_manager/pat_profile/list_builders/build_claim_statement_files_list.dart b/Frontend/lib/mih_packages/patient_manager/pat_profile/list_builders/build_claim_statement_files_list.dart index b34611ed..1be9c2aa 100644 --- a/Frontend/lib/mih_packages/patient_manager/pat_profile/list_builders/build_claim_statement_files_list.dart +++ b/Frontend/lib/mih_packages/patient_manager/pat_profile/list_builders/build_claim_statement_files_list.dart @@ -45,7 +45,6 @@ class _BuildClaimStatementFileListState String teporaryFileUrl = ""; await MihFileApi.getMinioFileUrl( filePath, - context, ).then((value) { teporaryFileUrl = value; }); diff --git a/Frontend/lib/mih_packages/patient_manager/pat_profile/list_builders/build_files_list.dart b/Frontend/lib/mih_packages/patient_manager/pat_profile/list_builders/build_files_list.dart index b6050814..6e5c0043 100644 --- a/Frontend/lib/mih_packages/patient_manager/pat_profile/list_builders/build_files_list.dart +++ b/Frontend/lib/mih_packages/patient_manager/pat_profile/list_builders/build_files_list.dart @@ -45,7 +45,6 @@ class _BuildFilesListState extends State { String teporaryFileUrl = ""; await MihFileApi.getMinioFileUrl( filePath, - context, ).then((value) { teporaryFileUrl = value; }); diff --git a/Frontend/lib/mih_services/mih_business_details_services.dart b/Frontend/lib/mih_services/mih_business_details_services.dart index f12e1282..6692dddc 100644 --- a/Frontend/lib/mih_services/mih_business_details_services.dart +++ b/Frontend/lib/mih_services/mih_business_details_services.dart @@ -276,7 +276,7 @@ class MihBusinessDetailsServices { businessMissionVision, ), ); - String newProPicUrl = await MihFileApi.getMinioFileUrl(filePath, context); + String newProPicUrl = await MihFileApi.getMinioFileUrl(filePath); provider.setBusinessProfilePicUrl(newProPicUrl); return 200; } else { diff --git a/Frontend/lib/mih_services/mih_file_services.dart b/Frontend/lib/mih_services/mih_file_services.dart index e3eec301..7fbfbcb3 100644 --- a/Frontend/lib/mih_services/mih_file_services.dart +++ b/Frontend/lib/mih_services/mih_file_services.dart @@ -17,7 +17,6 @@ class MihFileApi { static Future getMinioFileUrl( String filePath, - BuildContext context, ) async { // loadingPopUp(context); // print("here"); diff --git a/Frontend/lib/mih_services/mih_my_business_user_services.dart b/Frontend/lib/mih_services/mih_my_business_user_services.dart index bb927b5f..597aa4f0 100644 --- a/Frontend/lib/mih_services/mih_my_business_user_services.dart +++ b/Frontend/lib/mih_services/mih_my_business_user_services.dart @@ -122,7 +122,7 @@ class MihMyBusinessUserServices { bUserAccess, ), ); - String newProPicUrl = await MihFileApi.getMinioFileUrl(filePath, context); + String newProPicUrl = await MihFileApi.getMinioFileUrl(filePath); provider.setBusinessUserSignatureUrl(newProPicUrl); return 200; } else { diff --git a/Frontend/lib/mih_services/mih_user_services.dart b/Frontend/lib/mih_services/mih_user_services.dart index b7785b17..af03acc6 100644 --- a/Frontend/lib/mih_services/mih_user_services.dart +++ b/Frontend/lib/mih_services/mih_user_services.dart @@ -189,7 +189,7 @@ class MihUserServices { purpose, ), ); - String newProPicUrl = await MihFileApi.getMinioFileUrl(filePath, context); + String newProPicUrl = await MihFileApi.getMinioFileUrl(filePath); context.read().setUserProfilePicUrl(newProPicUrl); return response.statusCode; } else {