TimePicker constructor
const
TimePicker({
- Key? key,
- bool roundBorder = false,
- double maxWidth = 180,
- double maxHeight = 200,
- Color colorBackground = Colors.transparent,
- TextStyle style = const TextStyle(color: Colors.black, fontSize: 12, fontWeight: FontWeight.normal),
- TextStyle selectedStyle = const TextStyle(color: Colors.black, fontSize: 16, fontWeight: FontWeight.bold),
- required String hoursSemanticLabel,
- required String minutesSemanticLabel,
- double minutesOffAxisFraction = 1.0,
- double hoursOffAxisFraction = -1.0,
- double diameterRatio = 1.1,
- double itemExtent = 25.0,
- DateTime? initialTime,
- required dynamic onTimeSelected(),
- bool selectAtStart = false,
- Duration? debouncingWindow = const Duration(milliseconds: 300),
- 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,
});