PickerWheelOptions constructor

const PickerWheelOptions({
  1. double itemExtent = 22,
  2. double diameterRatio = 1.3,
  3. double offAxisFraction = 0,
  4. double perspective = 0.01,
  5. bool useMagnifier = true,
  6. double magnification = 1.1,
  7. double squeeze = 1,
  8. bool isCupertino = true,
  9. Color? backgroundColor,
  10. ScrollPhysics physics = const FixedExtentScrollPhysics(),
  11. 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,
});