This commit is contained in:
2025-04-25 20:22:13 +02:00
parent 742a83310c
commit 0cbf52ccc8
2 changed files with 28 additions and 14 deletions

View File

@@ -62,8 +62,9 @@ class _PackageToolOneState extends State<PackageToolOne> {
void initState() { void initState() {
super.initState(); super.initState();
setState(() { setState(() {
imagePreview = const NetworkImage( imagePreview = null;
"https://lh3.googleusercontent.com/nW4ZZ89Q1ATz7Ht3nsAVWXL_cwNi4gNusqQZiL60UuuI3FG-VM7bTYDoJ-sUr2kDTdorfQYjxo5PjDM-0MO5rA=s512"); // const NetworkImage(
// "https://lh3.googleusercontent.com/nW4ZZ89Q1ATz7Ht3nsAVWXL_cwNi4gNusqQZiL60UuuI3FG-VM7bTYDoJ-sUr2kDTdorfQYjxo5PjDM-0MO5rA=s512");
}); });
} }

View File

@@ -338,21 +338,34 @@ class _MihMyBusinessUserState extends State<MihMyBusinessUser> {
future: userSignatureUrlFuture, future: userSignatureUrlFuture,
builder: (context, snapshot) { builder: (context, snapshot) {
if (snapshot.connectionState == ConnectionState.waiting) { if (snapshot.connectionState == ConnectionState.waiting) {
return Container( return MihImageDisplay(
// alignment: Alignment.center, imageFile: null,
width: 300, width: 300,
height: 200, height: 200,
child: FittedBox( editable: true,
alignment: Alignment.center, fileNameController: signtureController,
fit: BoxFit.fill, userSelectedfile: userSignatureFile,
child: Icon( onChange: (selectedFile) {
MihIcons.mihCircleFrame, setState(() {
color: MzanziInnovationHub.of(context)! userSignatureFile = selectedFile;
.theme });
.secondaryColor(), },
),
),
); );
// 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 && } else if (snapshot.connectionState == ConnectionState.done &&
snapshot.hasData && snapshot.hasData &&
snapshot.data != null && snapshot.data != null &&