From e7cecfa15c3636a9557435d4eef491f7b67e5ef5 Mon Sep 17 00:00:00 2001 From: Yasien Mac Mini Date: Thu, 3 Jul 2025 11:52:27 +0200 Subject: [PATCH] comment out unused code --- .../components/mih_business_card.dart | 120 +++++++++--------- 1 file changed, 60 insertions(+), 60 deletions(-) diff --git a/Frontend/lib/mih_packages/mzansi_profile/business_profile/components/mih_business_card.dart b/Frontend/lib/mih_packages/mzansi_profile/business_profile/components/mih_business_card.dart index 32316654..6cba0fe2 100644 --- a/Frontend/lib/mih_packages/mzansi_profile/business_profile/components/mih_business_card.dart +++ b/Frontend/lib/mih_packages/mzansi_profile/business_profile/components/mih_business_card.dart @@ -171,66 +171,66 @@ class _MihBusinessCardState extends State { } } - Future _launchWebsite(String urlString) async { - final Uri url = Uri.parse(urlString); - try { - if (await canLaunchUrl(url)) { - await launchUrl(url); - } else { - print('Could not launch $urlString'); - showDialog( - context: context, - builder: (context) { - return MihPackageAlert( - alertIcon: Icon( - Icons.warning_rounded, - size: 100, - ), - alertTitle: "Error Opening Website", - alertBody: Column( - children: [ - Text( - "Unable to lauch ${widget.businessName}", - style: TextStyle( - color: - MzanziInnovationHub.of(context)!.theme.errorColor(), - fontSize: 15, - ), - ), - ], - ), - alertColour: - MzanziInnovationHub.of(context)!.theme.errorColor(), - ); - }); - } - } catch (e) { - showDialog( - context: context, - builder: (context) { - return MihPackageAlert( - alertIcon: Icon( - Icons.warning_rounded, - size: 100, - ), - alertTitle: "Error Opening Website", - alertBody: Column( - children: [ - Text( - "Unable to lauch ${widget.businessName}", - style: TextStyle( - color: - MzanziInnovationHub.of(context)!.theme.errorColor(), - fontSize: 15, - ), - ), - ], - ), - alertColour: MzanziInnovationHub.of(context)!.theme.errorColor(), - ); - }); - } - } + // Future _launchWebsite(String urlString) async { + // final Uri url = Uri.parse(urlString); + // try { + // if (await canLaunchUrl(url)) { + // await launchUrl(url); + // } else { + // print('Could not launch $urlString'); + // showDialog( + // context: context, + // builder: (context) { + // return MihPackageAlert( + // alertIcon: Icon( + // Icons.warning_rounded, + // size: 100, + // ), + // alertTitle: "Error Opening Website", + // alertBody: Column( + // children: [ + // Text( + // "Unable to lauch ${widget.businessName}", + // style: TextStyle( + // color: + // MzanziInnovationHub.of(context)!.theme.errorColor(), + // fontSize: 15, + // ), + // ), + // ], + // ), + // alertColour: + // MzanziInnovationHub.of(context)!.theme.errorColor(), + // ); + // }); + // } + // } catch (e) { + // showDialog( + // context: context, + // builder: (context) { + // return MihPackageAlert( + // alertIcon: Icon( + // Icons.warning_rounded, + // size: 100, + // ), + // alertTitle: "Error Opening Website", + // alertBody: Column( + // children: [ + // Text( + // "Unable to lauch ${widget.businessName}", + // style: TextStyle( + // color: + // MzanziInnovationHub.of(context)!.theme.errorColor(), + // fontSize: 15, + // ), + // ), + // ], + // ), + // alertColour: MzanziInnovationHub.of(context)!.theme.errorColor(), + // ); + // }); + // } + // } Widget _buildContactInfo( String label,