no message

This commit is contained in:
2026-01-20 18:05:38 +08:00
parent 019850148f
commit 1ea9a8bf11

View File

@@ -119,44 +119,44 @@ class CustomerImagesNetworking extends StatelessWidget {
);
},
);
return Image.network(
key: Key(imageUrl),
imageUrl,
width: width,
height: height,
fit: fit,
errorBuilder: (_, object, s) {
return Container(
width: width,
height: height,
padding: EdgeInsets.all((width ?? 0) / 2),
child: Center(
child: Image.asset(
'assets/images/noContainer.png',
// width: width /2,
// height: width /2,
fit: fit ?? BoxFit.contain,
),
),
);
},
);
return imageUrl.contains('http') == true
? FadeInImage.memoryNetwork(
placeholder: kTransparentImage,
width: width,
height: height,
image: imageUrl,
fit: fit,
placeholderErrorBuilder:
(_, Object object, StackTrace? stackTrace) {
return errorWidget ?? const SizedBox();
},
imageErrorBuilder: (_, Object object, StackTrace? stackTrace) {
return errorWidget ?? const SizedBox();
},
)
: errorWidget ?? const SizedBox();
// return Image.network(
// key: Key(imageUrl),
// imageUrl,
// width: width,
// height: height,
// fit: fit,
// errorBuilder: (_, object, s) {
// return Container(
// width: width,
// height: height,
// padding: EdgeInsets.all((width ?? 0) / 2),
// child: Center(
// child: Image.asset(
// 'assets/images/noContainer.png',
// // width: width /2,
// // height: width /2,
// fit: fit ?? BoxFit.contain,
// ),
// ),
// );
// },
// );
// return imageUrl.contains('http') == true
// ? FadeInImage.memoryNetwork(
// placeholder: kTransparentImage,
// width: width,
// height: height,
// image: imageUrl,
// fit: fit,
// placeholderErrorBuilder:
// (_, Object object, StackTrace? stackTrace) {
// return errorWidget ?? const SizedBox();
// },
// imageErrorBuilder: (_, Object object, StackTrace? stackTrace) {
// return errorWidget ?? const SizedBox();
// },
// )
// : errorWidget ?? const SizedBox();
}
}