PickerWheelOptions constructor
const
PickerWheelOptions({
- double itemExtent = 22,
- double diameterRatio = 1.3,
- double offAxisFraction = 0,
- double perspective = 0.01,
- bool useMagnifier = true,
- double magnification = 1.1,
- double squeeze = 1,
- bool isCupertino = true,
- Color? backgroundColor,
- ScrollPhysics physics = const FixedExtentScrollPhysics(),
- double? itemWidth,
Implementation
const PickerWheelOptions({
/// 高度
super.itemExtent = 22,
/// 半径大小,越大则越平面,越小则间距越大
super.diameterRatio = 1.3,
/// 选中item偏移
super.offAxisFraction = 0,
/// 表示ListWheel水平偏离中心的程度 范围[0,0.01]
super.perspective = 0.01,
/// 是否启用放大
super.useMagnifier = true,
/// 放大倍率
super.magnification = 1.1,
/// 上下间距默认为1 数越小 间距越大
super.squeeze = 1,
/// 使用ios Cupertino 风格
super.isCupertino = true,
/// [isCupertino]=true生效
super.backgroundColor,
/// physics
super.physics = const FixedExtentScrollPhysics(),
this.itemWidth,
});