CustomTimePicker constructor

const CustomTimePicker({
  1. required void onConfirm(
    1. String
    ),
  2. Key? key,
  3. Widget? leading,
  4. Widget? title,
  5. Widget? subtitle,
  6. Widget? trailing,
  7. bool? isRequired,
  8. String? titleText,
  9. String? trailingText,
  10. String? additionalInfoText,
  11. Widget? additionalInfo,
  12. String value = '00:00:00',
  13. int minuteInterval = 1,
  14. int secondInterval = 1,
  15. AlignmentGeometry alignment = Alignment.center,
  16. CupertinoTimerPickerMode mode = CupertinoTimerPickerMode.hms,
  17. 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,
});