From ec251bba8683aa95ed909649179394615ff341fa Mon Sep 17 00:00:00 2001 From: yaso Date: Tue, 8 Jul 2025 10:35:07 +0200 Subject: [PATCH] Make website action visibility dynamic --- .../components/mih_business_card.dart | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 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 f9071f43..5c531b57 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 @@ -379,7 +379,7 @@ class _MihBusinessCardState extends State { }, ), Visibility( - visible: widget.website != null, + visible: widget.website != null && widget.website! != "", child: Padding( padding: const EdgeInsets.symmetric(horizontal: 10.0), child: Divider( @@ -387,14 +387,17 @@ class _MihBusinessCardState extends State { ), ), ), - _buildContactInfo( - "Website", - "Find out more about us.", - Icons.vpn_lock, - const Color(0xffd67d8a), - () { - _launchWebsite(widget.website!); - }, + Visibility( + visible: widget.website != null && widget.website! != "", + child: _buildContactInfo( + "Website", + "Find out more about us.", + Icons.vpn_lock, + const Color(0xffd67d8a), + () { + _launchWebsite(widget.website!); + }, + ), ), // Padding( // padding: const EdgeInsets.symmetric(horizontal: 10.0),