diff --git a/Frontend/lib/mih_components/mih_package_components/Example/package_tools/package_tool_one.dart b/Frontend/lib/mih_components/mih_package_components/Example/package_tools/package_tool_one.dart index 6543496c..87e4786d 100644 --- a/Frontend/lib/mih_components/mih_package_components/Example/package_tools/package_tool_one.dart +++ b/Frontend/lib/mih_components/mih_package_components/Example/package_tools/package_tool_one.dart @@ -62,8 +62,9 @@ class _PackageToolOneState extends State { void initState() { super.initState(); setState(() { - imagePreview = const NetworkImage( - "https://lh3.googleusercontent.com/nW4ZZ89Q1ATz7Ht3nsAVWXL_cwNi4gNusqQZiL60UuuI3FG-VM7bTYDoJ-sUr2kDTdorfQYjxo5PjDM-0MO5rA=s512"); + imagePreview = null; + // const NetworkImage( + // "https://lh3.googleusercontent.com/nW4ZZ89Q1ATz7Ht3nsAVWXL_cwNi4gNusqQZiL60UuuI3FG-VM7bTYDoJ-sUr2kDTdorfQYjxo5PjDM-0MO5rA=s512"); }); } diff --git a/Frontend/lib/mih_packages/mzansi_profile/business_profile/package_tools/mih_my_business_user.dart b/Frontend/lib/mih_packages/mzansi_profile/business_profile/package_tools/mih_my_business_user.dart index 2d8bcab3..20780511 100644 --- a/Frontend/lib/mih_packages/mzansi_profile/business_profile/package_tools/mih_my_business_user.dart +++ b/Frontend/lib/mih_packages/mzansi_profile/business_profile/package_tools/mih_my_business_user.dart @@ -338,21 +338,34 @@ class _MihMyBusinessUserState extends State { future: userSignatureUrlFuture, builder: (context, snapshot) { if (snapshot.connectionState == ConnectionState.waiting) { - return Container( - // alignment: Alignment.center, + return MihImageDisplay( + imageFile: null, width: 300, height: 200, - child: FittedBox( - alignment: Alignment.center, - fit: BoxFit.fill, - child: Icon( - MihIcons.mihCircleFrame, - color: MzanziInnovationHub.of(context)! - .theme - .secondaryColor(), - ), - ), + editable: true, + fileNameController: signtureController, + userSelectedfile: userSignatureFile, + onChange: (selectedFile) { + setState(() { + userSignatureFile = selectedFile; + }); + }, ); + // return Container( + // // alignment: Alignment.center, + // width: 300, + // height: 200, + // child: FittedBox( + // alignment: Alignment.center, + // fit: BoxFit.fill, + // child: Icon( + // MihIcons.mihCircleFrame, + // color: MzanziInnovationHub.of(context)! + // .theme + // .secondaryColor(), + // ), + // ), + // ); } else if (snapshot.connectionState == ConnectionState.done && snapshot.hasData && snapshot.data != null &&