An Instagram like Image Slider Widget.
- Copy or download this file into your project.
- Import this file wherever you need to use it.
- Use it as a container of one or multiple network images.
List listOfImages = [
{
"url": "https://via.placeholder.com/200"
},
{
"url": "https://via.placeholder.com/350",
},
......
......
];
ImageSlider(images: listOfImages, height: 300, showPointers: true);
As you can see the widget accepts 3 parameters:
images
, a List of Maps with at least a required parameter calledurl
.height
, an integer with a default value of 300px and a width of 100%.showPointers
, a boolean value representing the visibility of the slider bulet pints which show the current image displayed on the existing list. By default the pointers are hidden if the list has only one item.