📜  颤振获取轮播滑块当前索引 - Dart 代码示例

📅  最后修改于: 2022-03-11 14:48:05.746000             🧑  作者: Mango

代码示例1
CarouselSlider(
   ...
  options: CarouselOptions(
      onPageChanged: (index, reason) {
      setState(() {
          _currentIndex = index; //<-- Page index
      });
      },
  ),
  items: ... ,
),