I have a widget that returns a carouselslider and I want to zoom and pinch the image
this is my code:
Widget myPicture() {
List<Widget> items = [];
for (var i in widget.product.imageUrlList) {
items.add(
Image.network(i),
);
}
return CarouselSlider(
items: items,
options: CarouselOptions(
enlargeCenterPage: false,
),
);
}
i try to write like this:
Widget myPicture() {
List<Widget> items = [];
for (var i in widget.product.imageUrlList) {
items.add(
Image.network(i),
);
}
return InteractiveViewer(
child: CarouselSlider(
items: items,
options: CarouselOptions(
enlargeCenterPage: false,
),
),
);
}
but it doesn't work too
what should I do?