From 501283716efe91abeb903eb985f9f110b58a3d89 Mon Sep 17 00:00:00 2001 From: Yasien Mac Mini Date: Fri, 4 Jul 2025 13:39:42 +0200 Subject: [PATCH] add mission and vision to profile --- .../package_tools/mih_business_details.dart | 26 +++++++++++++++---- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/Frontend/lib/mih_packages/mzansi_profile/business_profile/package_tools/mih_business_details.dart b/Frontend/lib/mih_packages/mzansi_profile/business_profile/package_tools/mih_business_details.dart index 58bd6d5a..7504225a 100644 --- a/Frontend/lib/mih_packages/mzansi_profile/business_profile/package_tools/mih_business_details.dart +++ b/Frontend/lib/mih_packages/mzansi_profile/business_profile/package_tools/mih_business_details.dart @@ -618,10 +618,9 @@ class _MihBusinessDetailsState extends State { ), ), ), - // Center( + // FittedBox( // child: Text( - // "*DEMO TEXT* This would be the bio of the user telling us a bit about themself and let. This would be the bio of the user telling us a bit about themself and let. This would be the bio of the user telling us a bit about themself", - // textAlign: TextAlign.center, + // "Mission & Vision", // style: TextStyle( // fontSize: 15, // fontWeight: FontWeight.bold, @@ -631,6 +630,24 @@ class _MihBusinessDetailsState extends State { // ), // ), // ), + Center( + child: SizedBox( + width: 700, + child: Text( + widget.arguments.business!.mission_vision.isNotEmpty + ? widget.arguments.business!.mission_vision + : "No Mission & Vision added yet", + textAlign: TextAlign.center, + style: TextStyle( + fontSize: 15, + fontWeight: FontWeight.bold, + color: MzanziInnovationHub.of(context)! + .theme + .secondaryColor(), + ), + ), + ), + ), const SizedBox(height: 20), SizedBox( width: 700, @@ -640,8 +657,7 @@ class _MihBusinessDetailsState extends State { email: widget.arguments.business!.bus_email, gpsLocation: widget.arguments.business!.gps_location, //To-Do: Add the business Website - website: - "https://app.mzansi-innovation-hub.co.za/privacy.html", + website: widget.arguments.business!.website, ), ), const SizedBox(height: 30.0),