mirror of
https://git.meshkee.com/applications/cssd.git
synced 2026-10-13 21:48:54 +03:30
latest
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import 'package:carousel_slider/carousel_slider.dart';
|
||||
import 'package:cssd/config/colors.dart';
|
||||
import 'package:cssd/models/item_model.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
@@ -344,20 +345,28 @@ class ItemDetailsDataBox extends StatelessWidget {
|
||||
),
|
||||
],
|
||||
),
|
||||
Divider(),
|
||||
SizedBox(
|
||||
if(datas.filePath!.isNotEmpty) Divider(),
|
||||
if(datas.filePath!.isNotEmpty) SizedBox(
|
||||
height: 10,
|
||||
),
|
||||
Container(
|
||||
if(datas.filePath!.isNotEmpty) Container(
|
||||
width: double.infinity,
|
||||
padding: EdgeInsets.symmetric(vertical: 10, horizontal: 20),
|
||||
child: ListView.separated(
|
||||
shrinkWrap: true,
|
||||
itemBuilder: (ctx, index) {
|
||||
child: CarouselSlider.builder(
|
||||
disableGesture: true,
|
||||
itemBuilder: (ctx, index, realIndex) {
|
||||
return Image(image: NetworkImage(datas.filePath![index]));
|
||||
},
|
||||
separatorBuilder: (ctx, index) => Divider(),
|
||||
itemCount: datas.filePath!.length,
|
||||
options: CarouselOptions(
|
||||
enlargeCenterPage: false,
|
||||
aspectRatio: 1,
|
||||
viewportFraction: 1,
|
||||
padEnds: false,
|
||||
pauseAutoPlayOnTouch: true,
|
||||
disableCenter: false,
|
||||
autoPlay: false,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user