BUG: Image display when error
This commit is contained in:
parent
609828a26c
commit
d5fcad8fa5
1 changed files with 11 additions and 1 deletions
|
|
@ -63,7 +63,17 @@ class _MihImageDisplayState extends State<MihImageDisplay> {
|
||||||
imagePreview != null
|
imagePreview != null
|
||||||
? ClipRRect(
|
? ClipRRect(
|
||||||
borderRadius: BorderRadius.circular(widget.width * 0.1),
|
borderRadius: BorderRadius.circular(widget.width * 0.1),
|
||||||
child: Image(image: imagePreview!),
|
child: Container(
|
||||||
|
// width: widget.width,
|
||||||
|
height: widget.height,
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
color: MihColors.getSecondaryColor(
|
||||||
|
MzansiInnovationHub.of(context)!.theme.mode ==
|
||||||
|
"Dark"),
|
||||||
|
borderRadius: BorderRadius.circular(widget.width * 0.1),
|
||||||
|
),
|
||||||
|
child: Image(image: imagePreview!),
|
||||||
|
),
|
||||||
)
|
)
|
||||||
: Container(
|
: Container(
|
||||||
width: widget.width,
|
width: widget.width,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue