I m trying to give padding between these two images but was unable to do so tried adding padding in the child
class BrandSlider extends StatelessWidget {
final config;
const BrandSlider({required Key key, this.config}) : super(key: key);
@override
Widget build(BuildContext context) {
return SizedBox(
height: 100,
child: ListView.builder(
scrollDirection: Axis.horizontal,
itemBuilder: (context, index) {
return InkWell(
// splashColor: Colors.orange,
onTap: () {
ProductModel.showList(
context: context, brandIds: config['items'][index]['id']);
},
child: Image.network(config['items'][index]['image']),
);
},
itemCount: brands.length,
),
);
}
}
