CustomTimePicker constructor
const
CustomTimePicker({
- required void onConfirm(),
- Key? key,
- Widget? leading,
- Widget? title,
- Widget? subtitle,
- Widget? trailing,
- bool? isRequired,
- String? titleText,
- String? trailingText,
- String? additionalInfoText,
- Widget? additionalInfo,
- String value = '00:00:00',
- int minuteInterval = 1,
- int secondInterval = 1,
- AlignmentGeometry alignment = Alignment.center,
- CupertinoTimerPickerMode mode = CupertinoTimerPickerMode.hms,
- Color? backgroundColor,
TimePicker 时间选择器组件
Implementation
const CustomTimePicker({
required this.onConfirm,
// -------------------------------------------------------------------------------------------- > ListTile
super.key,
this.leading,
this.title,
this.subtitle,
this.trailing,
this.isRequired,
this.titleText,
this.trailingText,
this.additionalInfoText,
this.additionalInfo,
// -------------------------------------------------------------------------------------------- > DatePicker
this.value = '00:00:00',
this.minuteInterval = 1,
this.secondInterval = 1,
this.alignment = Alignment.center,
this.mode = CupertinoTimerPickerMode.hms,
this.backgroundColor,
});