TimeSpinner constructor
const
TimeSpinner({
- required void onChangedSelectedTime(
- TimeOfDay? selected
- Key? key,
- TimeOfDay? initTime,
- bool is24HourFormat = false,
- double spinnerHeight = 120,
- double spinnerWidth = 60,
- double elementsSpace = 8,
- double digitHeight = 40,
- Color spinnerBgColor = const Color(0xFFF5F5F5),
- TextStyle selectedTextStyle = const TextStyle(fontSize: 24, fontWeight: FontWeight.bold, color: Colors.blue),
- TextStyle nonSelectedTextStyle = const TextStyle(fontSize: 18, color: Color(0xFFBDBDBD)),
- List<
int> ? hrValues, - List<
int> ? minValues, - List<
int> discardedHrValues = const [], - List<
int> discardedMinValues = const [], - BorderRadiusGeometry? borderRadius,
- BoxBorder? spinnerBorder,
- Function? onKeyboardEditing,
- bool showNoSelectionDots = true,
- AmPmButtonStyle? amPmButtonStyle,
- bool isInfiniteScroll = true,
Implementation
const TimeSpinner({
required this.onChangedSelectedTime,
super.key,
this.initTime,
this.is24HourFormat = false,
this.spinnerHeight = 120,
this.spinnerWidth = 60,
this.elementsSpace = 8,
this.digitHeight = 40,
this.spinnerBgColor = const Color(0xFFF5F5F5),
this.selectedTextStyle = const TextStyle(
fontSize: 24,
fontWeight: FontWeight.bold,
color: Colors.blue,
),
this.nonSelectedTextStyle = const TextStyle(
fontSize: 18,
color: Color(0xFFBDBDBD),
),
this.hrValues,
this.minValues,
this.discardedHrValues = const [],
this.discardedMinValues = const [],
this.borderRadius,
this.spinnerBorder,
this.onKeyboardEditing,
this.showNoSelectionDots = true,
this.amPmButtonStyle,
this.isInfiniteScroll = true,
});