Merge pull request #149 from yaso-meth/BUG--sig-when-error-or-null

sig fix
This commit is contained in:
yaso-meth
2025-04-25 20:23:37 +02:00
committed by GitHub
2 changed files with 28 additions and 14 deletions

View File

@@ -62,8 +62,9 @@ class _PackageToolOneState extends State<PackageToolOne> {
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");
});
}

View File

@@ -338,21 +338,34 @@ class _MihMyBusinessUserState extends State<MihMyBusinessUser> {
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 &&