forked from yaso_meth/mih-project
Merge pull request #149 from yaso-meth/BUG--sig-when-error-or-null
sig fix
This commit is contained in:
@@ -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");
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -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 &&
|
||||
|
||||
Reference in New Issue
Block a user