|
|
@ -37,6 +37,9 @@ class MImage extends StatelessWidget { |
|
|
|
"x${constraints.constrainHeight() * scaleIndex}/format/webp/quality/100"; |
|
|
|
"x${constraints.constrainHeight() * scaleIndex}/format/webp/quality/100"; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
print("constrainWidth: ${constraints.constrainWidth()}"); |
|
|
|
|
|
|
|
print("constrainHeight: ${constraints.constrainHeight()}"); |
|
|
|
|
|
|
|
|
|
|
|
if (imageUrl == null || imageUrl == "") { |
|
|
|
if (imageUrl == null || imageUrl == "") { |
|
|
|
return Image.asset( |
|
|
|
return Image.asset( |
|
|
|
"assets/image/default_2_1.png", |
|
|
|
"assets/image/default_2_1.png", |
|
|
|