From c3a7d603aa373ac2fb3abeea1f660fef11592ecc Mon Sep 17 00:00:00 2001 From: Plague Fox Date: Wed, 27 Dec 2023 18:19:02 +0400 Subject: [PATCH] Refactor product image widget in product screen --- .../src/feature/shop/widget/product_screen.dart | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/example/lib/src/feature/shop/widget/product_screen.dart b/example/lib/src/feature/shop/widget/product_screen.dart index f5980d7..624de31 100644 --- a/example/lib/src/feature/shop/widget/product_screen.dart +++ b/example/lib/src/feature/shop/widget/product_screen.dart @@ -812,12 +812,15 @@ class _ProductPhotosListViewState extends State<_ProductPhotosListView> { }, child: Hero( tag: 'product-${widget.product.id}-image-$idx', - child: Ink.image( - image: _getImageProvider(image), - fit: BoxFit.cover, - height: 256, - width: 256, - alignment: Alignment.center, + child: Material( + color: Colors.transparent, + child: Ink.image( + image: _getImageProvider(image), + fit: BoxFit.cover, + height: 256, + width: 256, + alignment: Alignment.center, + ), ), ), ),