Swiper3DWidget constructor

const Swiper3DWidget({
  1. Key? key,
  2. Swiper3DController? controller,
  3. List<Widget> children = const [],
  4. double childWidth = 80,
  5. double childHeight = 80,
  6. double deviationRatio = 1.0,
  7. double minScale = 0.8,
  8. EdgeInsets? padding,
  9. double? radius,
  10. ValueChanged<int>? onPageChanged,
  11. bool loop = true,
  12. ValueChanged<int>? onTap,
})

Implementation

const Swiper3DWidget({
  super.key,
  this.controller,
  this.children = const [],
  this.childWidth = 80,
  this.childHeight = 80,
  this.deviationRatio = 1.0,
  this.minScale = 0.8,
  this.padding,
  this.radius,
  this.onPageChanged, // 添加页面切换回调
  this.loop = true, // 添加循环滚动支持
  this.onTap,
});