Note: We are not going to build a carousel/slider from scratch, instead we are going to use a package called carousel_pro. In future tutorials I will show, how to build a carousel from scratch and how we can publish as a package.
Source code for the image carousel/slider
pubspec.yaml
main.dart
Flutter developer wallpaper by slcoder - ego with coding:
hey this carousel is awesome and i want to ask about how to get the image link? i want to tap the images and after that, it will move to another class and show the images
ReplyDeleteKeep images location/address in separate list or variable and when the index change pass it to the class you want with constructor.
DeleteHi, great example. How implements click action on tap item?
ReplyDeleteSorry for the late, you can wrap carousel with InkWell and implement a function for onTap
DeleteHow we can add Text along with the image, some caption for each Individual Image
ReplyDeleteFor your situation there are some modifications to do if you use this package. I see now there are so many great Carousel packages like Swiper that you can use. Later I will post about that.
DeleteThanks
ReplyDeleteYour Code help me in my project