浏览代码

fix counter

/zgh-devtools
Shiyun Wen 4 年前
当前提交
b311d209
共有 1 个文件被更改,包括 9 次插入9 次删除
  1. 18
      com.unity.uiwidgets/Runtime/cupertino/date_picker.cs

18
com.unity.uiwidgets/Runtime/cupertino/date_picker.cs


letterSpacing: -0.83f
);
public const float _kTimerPickerHalfColumnPadding = 2f;
public const float _kTimerPickerLabelPadSize = 4.5f;
public const float _kTimerPickerLabelFontSize = 17.0f;
public const float _kTimerPickerColumnIntrinsicWidth = 106f;

Color backgroundColor = null,
ValueChanged<TimeSpan> onTimerDurationChanged = null
):base(key : key) {
alignment = alignment ?? Alignment.center ;
alignment = alignment ?? Alignment.center;
//D.assert(((TimeSpan)initialTimerDuration)/TimeSpan. % minuteInterval == 0);
//D.assert(((TimeSpan)initialTimerDuration).% secondInterval == 0);
this.mode = mode;
this.initialTimerDuration = initialTimerDuration ?? TimeSpan.Zero;
this.minuteInterval = minuteInterval;

this.onTimerDurationChanged = onTimerDurationChanged;
public readonly CupertinoTimerPickerMode mode;
public readonly TimeSpan initialTimerDuration;
public readonly int minuteInterval;

return new IgnorePointer(
child: new Container(
//alignment: AlignmentDirectional.centerStart.resolve(textDirection),
alignment: AlignmentDirectional.centerStart.resolve(textDirection),
padding: padding.resolve(textDirection),
child: new SizedBox(
height: numberLabelHeight,

return new Container(
width: CupertinoDatePickerUtils._kTimerPickerColumnIntrinsicWidth + padding.horizontal,
padding: padding.resolve(textDirection),
//alignment: AlignmentDirectional.centerStart.resolve(textDirection),
alignment: AlignmentDirectional.centerStart.resolve(textDirection),
// alignment: AlignmentDirectional.centerEnd.resolve(textDirection),
alignment: AlignmentDirectional.centerEnd.resolve(textDirection),
child: new Text(text, softWrap: false, maxLines: 1, overflow: TextOverflow.visible)
)
);

正在加载...
取消
保存