From 27e99c3be018f23204400bb9f596aa033f6567a1 Mon Sep 17 00:00:00 2001 From: fmk Date: Mon, 25 Oct 2021 19:07:53 +0800 Subject: [PATCH] safety --- lib/view_widget/custom_image.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/view_widget/custom_image.dart b/lib/view_widget/custom_image.dart index 6fdcff22..efbd7416 100644 --- a/lib/view_widget/custom_image.dart +++ b/lib/view_widget/custom_image.dart @@ -37,6 +37,9 @@ class MImage extends StatelessWidget { "x${constraints.constrainHeight() * scaleIndex}/format/webp/quality/100"; } + print("constrainWidth: ${constraints.constrainWidth()}"); + print("constrainHeight: ${constraints.constrainHeight()}"); + if (imageUrl == null || imageUrl == "") { return Image.asset( "assets/image/default_2_1.png",