Fix image carousel

This commit is contained in:
fhkhd
2023-12-18 13:33:22 +03:30
parent dfbec35288
commit 2a4d72c605
2 changed files with 24 additions and 7 deletions
@@ -374,13 +374,14 @@ class ItemDetailsDataBox extends StatelessWidget {
},
itemCount: datas.filePath!.length,
options: CarouselOptions(
enlargeCenterPage: false,
aspectRatio: 1,
viewportFraction: 1,
enlargeCenterPage: true,
aspectRatio: 16/8,
viewportFraction: datas.filePath?.length == 1 ? 1 : 0.6,
padEnds: false,
pauseAutoPlayOnTouch: true,
disableCenter: false,
autoPlay: false,
enlargeFactor: 0.5,
enableInfiniteScroll:
datas.filePath?.length == 1 ? false : true,
),