Swiper3DWidget constructor
const
Swiper3DWidget({
- Key? key,
- Swiper3DController? controller,
- List<
Widget> children = const [], - double childWidth = 80,
- double childHeight = 80,
- double deviationRatio = 1.0,
- double minScale = 0.8,
- EdgeInsets? padding,
- double? radius,
- ValueChanged<
int> ? onPageChanged, - bool loop = true,
- 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,
});