Skip to content

Commit

Permalink
Refactor product image widget in product screen
Browse files Browse the repository at this point in the history
  • Loading branch information
PlugFox committed Dec 27, 2023
1 parent 4bf14cc commit c3a7d60
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions example/lib/src/feature/shop/widget/product_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
),
),
),
Expand Down

0 comments on commit c3a7d60

Please sign in to comment.