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( // return Image.network(
key: Key(imageUrl), // key: Key(imageUrl),
imageUrl, // imageUrl,
width: width, // width: width,
height: height, // height: height,
fit: fit, // fit: fit,
errorBuilder: (_, object, s) { // errorBuilder: (_, object, s) {
return Container( // return Container(
width: width, // width: width,
height: height, // height: height,
padding: EdgeInsets.all((width ?? 0) / 2), // padding: EdgeInsets.all((width ?? 0) / 2),
child: Center( // child: Center(
child: Image.asset( // child: Image.asset(
'assets/images/noContainer.png', // 'assets/images/noContainer.png',
// width: width /2, // // width: width /2,
// height: width /2, // // height: width /2,
fit: fit ?? BoxFit.contain, // fit: fit ?? BoxFit.contain,
), // ),
), // ),
); // );
}, // },
); // );
return imageUrl.contains('http') == true // return imageUrl.contains('http') == true
? FadeInImage.memoryNetwork( // ? FadeInImage.memoryNetwork(
placeholder: kTransparentImage, // placeholder: kTransparentImage,
width: width, // width: width,
height: height, // height: height,
image: imageUrl, // image: imageUrl,
fit: fit, // fit: fit,
placeholderErrorBuilder: // placeholderErrorBuilder:
(_, Object object, StackTrace? stackTrace) { // (_, Object object, StackTrace? stackTrace) {
return errorWidget ?? const SizedBox(); // return errorWidget ?? const SizedBox();
}, // },
imageErrorBuilder: (_, Object object, StackTrace? stackTrace) { // imageErrorBuilder: (_, Object object, StackTrace? stackTrace) {
return errorWidget ?? const SizedBox(); // return errorWidget ?? const SizedBox();
}, // },
) // )
: errorWidget ?? const SizedBox(); // : errorWidget ?? const SizedBox();
} }
} }