no message
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user