diff --git a/lib/utils/customer.dart b/lib/utils/customer.dart index 01d9ba3..65b3832 100644 --- a/lib/utils/customer.dart +++ b/lib/utils/customer.dart @@ -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(); } }