|
|
|
|
|
|
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) |
|
|
|
) |
|
|
|
); |
|
|
|