Flutter Get Carousel Sliders Индекс тока
CarouselSlider(
...
options: CarouselOptions(
onPageChanged: (index, reason) {
setState(() {
_currentIndex = index; //<-- Page index
});
},
),
items: ... ,
),
Lazurite