如何在颤振时不关注CupertinoTimerPicker?
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);
},
),