Answers for "flutter get carousel sliders current index"

0

flutter get carousel sliders current index

CarouselSlider(
   ...
  options: CarouselOptions(
  	onPageChanged: (index, reason) {
      setState(() {
      	_currentIndex = index; //<-- Page index
      });
  	},
  ),
  items: ... ,
),
Posted by: Guest on September-22-2021

Code answers related to "Dart"

Browse Popular Code Answers by Language