Merge pull request #215 from yaso-meth/BUG--Signature-Display-Issue
BUG--Signature-Display-Issue
This commit is contained in:
commit
5f58831e3d
2 changed files with 9 additions and 2 deletions
|
|
@ -57,6 +57,7 @@ class _MihImageDisplayState extends State<MihImageDisplay> {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
// if (widget.imageFile == null)
|
||||||
return Container(
|
return Container(
|
||||||
// color: Colors.white,
|
// color: Colors.white,
|
||||||
alignment: Alignment.center,
|
alignment: Alignment.center,
|
||||||
|
|
|
||||||
|
|
@ -113,9 +113,12 @@ class _MzansiBusinessProfileState extends State<MzansiBusinessProfile> {
|
||||||
return const Center(child: Mihloadingcircle());
|
return const Center(child: Mihloadingcircle());
|
||||||
} else if (snapshot.connectionState == ConnectionState.done &&
|
} else if (snapshot.connectionState == ConnectionState.done &&
|
||||||
snapshot.hasData) {
|
snapshot.hasData) {
|
||||||
|
final logoUrl = snapshot.data!.isNotEmpty
|
||||||
|
? NetworkImage(snapshot.data!)
|
||||||
|
: null;
|
||||||
return MihBusinessDetails(
|
return MihBusinessDetails(
|
||||||
arguments: widget.arguments,
|
arguments: widget.arguments,
|
||||||
logoImage: NetworkImage(snapshot.requireData),
|
logoImage: logoUrl,
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
return Text("Error: ${snapshot.error}");
|
return Text("Error: ${snapshot.error}");
|
||||||
|
|
@ -129,7 +132,10 @@ class _MzansiBusinessProfileState extends State<MzansiBusinessProfile> {
|
||||||
} else if (snapshot.connectionState == ConnectionState.done &&
|
} else if (snapshot.connectionState == ConnectionState.done &&
|
||||||
snapshot.hasData) {
|
snapshot.hasData) {
|
||||||
final proPicUrl = NetworkImage(snapshot.data![0]);
|
final proPicUrl = NetworkImage(snapshot.data![0]);
|
||||||
final signatureUrl = NetworkImage(snapshot.data![1]);
|
print("=============== Signature URL: ${snapshot.data![1]}");
|
||||||
|
final signatureUrl = snapshot.data![1].isNotEmpty
|
||||||
|
? NetworkImage(snapshot.data![1])
|
||||||
|
: null;
|
||||||
return MihMyBusinessUser(
|
return MihMyBusinessUser(
|
||||||
arguments: widget.arguments,
|
arguments: widget.arguments,
|
||||||
userProPicImage: proPicUrl,
|
userProPicImage: proPicUrl,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue