Flutter 如何在颤振上对CupertinoTimerPicker进行不聚焦?
如何在颤振上对CupertinoTimerPicker进行不聚焦Flutter 如何在颤振上对CupertinoTimerPicker进行不聚焦?,flutter,dart,Flutter,Dart,如何在颤振上对CupertinoTimerPicker进行不聚焦 CupertinoTimerPicker( mode: CupertinoTimerPickerMode.hm, minuteInterval: 1, secondInterval: 1, initialTimerDuration: _timer, onTimerDurationChanged
CupertinoTimerPicker(
mode: CupertinoTimerPickerMode.hm,
minuteInterval: 1,
secondInterval: 1,
initialTimerDuration: _timer,
onTimerDurationChanged: (Duration changedtimer) {
// if the duration is set to zero or not set, set to No Countdown button
if (changedtimer.inSeconds <= 0) {
setState(() {
_countdownType = CountdownType.DontSet;
_currentSelectedLabel = _buttonValueList[0];
_timer = Duration.zero;
});
} else {
setState(() {
_countdownType = CountdownType.Set;
_currentSelectedLabel = _buttonValueList[1];
_timer = changedtimer;
});
}
_onPressed(changedtimer);
},
),
CupertinoTimerPicker(
模式:CupertinoTimerPickerMode.hm,
分钟间隔:1,
第二次间隔:1,
initialTimerDuration:\u计时器,
onTimerDurationChanged:(持续时间更改时间){
//如果持续时间设置为零或未设置,则设置为无倒计时按钮
if(changedtimer.unseconds)