TimePicker constructor

const TimePicker({
  1. Key? key,
  2. bool roundBorder = false,
  3. double maxWidth = 180,
  4. double maxHeight = 200,
  5. Color colorBackground = Colors.transparent,
  6. TextStyle style = const TextStyle(color: Colors.black, fontSize: 12, fontWeight: FontWeight.normal),
  7. TextStyle selectedStyle = const TextStyle(color: Colors.black, fontSize: 16, fontWeight: FontWeight.bold),
  8. required String hoursSemanticLabel,
  9. required String minutesSemanticLabel,
  10. double minutesOffAxisFraction = 1.0,
  11. double hoursOffAxisFraction = -1.0,
  12. double diameterRatio = 1.1,
  13. double itemExtent = 25.0,
  14. DateTime? initialTime,
  15. required dynamic onTimeSelected(
    1. DateTime
    ),
  16. bool selectAtStart = false,
  17. Duration? debouncingWindow = const Duration(milliseconds: 300),
  18. double separatorPadding = 0.0,
})

Implementation

const TimePicker({
  super.key,
  this.roundBorder = false,
  this.maxWidth = 180,
  this.maxHeight = 200,
  this.colorBackground = Colors.transparent,
  this.style = const TextStyle(
      color: Colors.black, fontSize: 12, fontWeight: FontWeight.normal),
  this.selectedStyle = const TextStyle(
      color: Colors.black, fontSize: 16, fontWeight: FontWeight.bold),
  required this.hoursSemanticLabel,
  required this.minutesSemanticLabel,
  this.minutesOffAxisFraction = 1.0,
  this.hoursOffAxisFraction = -1.0,
  this.diameterRatio = 1.1,
  this.itemExtent = 25.0,
  this.initialTime,
  required this.onTimeSelected,
  this.selectAtStart = false,
  this.debouncingWindow = const Duration(milliseconds: 300),
  this.separatorPadding = 0.0,
});