54 lines
1.6 KiB
Dart
54 lines
1.6 KiB
Dart
import 'package:fcs/fcs/common/helpers/theme.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter_icons/flutter_icons.dart';
|
|
|
|
getImgSlider(List<String> images) {
|
|
return Container(
|
|
height: 130,
|
|
width: 500,
|
|
child: ListView.separated(
|
|
separatorBuilder: (context, index) => Divider(
|
|
color: Colors.black,
|
|
),
|
|
itemCount: images.length + 1,
|
|
scrollDirection: Axis.horizontal,
|
|
itemBuilder: (context, index) {
|
|
if (index == images.length) {
|
|
return Padding(
|
|
padding: const EdgeInsets.all(8.0),
|
|
child: Container(
|
|
width: 200,
|
|
height: 70,
|
|
decoration: BoxDecoration(
|
|
border: Border.all(
|
|
color: primaryColor,
|
|
width: 2.0,
|
|
),
|
|
),
|
|
child: Icon(SimpleLineIcons.plus),
|
|
),
|
|
);
|
|
} else {
|
|
return Padding(
|
|
padding: const EdgeInsets.all(8.0),
|
|
child: Container(
|
|
width: 200,
|
|
height: 70,
|
|
decoration: BoxDecoration(
|
|
border: Border.all(
|
|
color: primaryColor,
|
|
width: 2.0,
|
|
),
|
|
),
|
|
child: Image.network(
|
|
"https://lh3.googleusercontent.com/Fu9J7YpHnHK8QPr3kdAyEbTFyvB3h9Na69-j8CpQqWbMQP9sGplj7hVqQ5beKKLGgdyA8f5zIfqWdp2ITxuqlGkWDVuTyAtj_Rmw=w0",
|
|
width: 50,
|
|
height: 50),
|
|
),
|
|
);
|
|
}
|
|
},
|
|
),
|
|
);
|
|
}
|