TDDatePicker constructor
const
TDDatePicker({
- required String title,
- required DatePickerCallback? onConfirm,
- DatePickerCallback? onCancel,
- Color? backgroundColor,
- Color? titleDividerColor,
- double? topRadius,
- double? titleHeight,
- EdgeInsets? padding,
- double? leftPadding,
- double? rightPadding,
- TextStyle? leftTextStyle,
- TextStyle? rightTextStyle,
- TextStyle? centerTextStyle,
- Widget? customSelectWidget,
- ItemDistanceCalculator? itemDistanceCalculator,
- required DatePickerModel model,
- bool showTitle = true,
- double pickerHeight = 200,
- required int pickerItemCount,
- Key? key,
Implementation
const TDDatePicker(
{required this.title,
required this.onConfirm,
this.onCancel,
this.backgroundColor,
this.titleDividerColor,
this.topRadius,
this.titleHeight,
this.padding,
this.leftPadding,
this.rightPadding,
this.leftTextStyle,
this.rightTextStyle,
this.centerTextStyle,
this.customSelectWidget,
this.itemDistanceCalculator,
required this.model,
this.showTitle = true,
this.pickerHeight = 200,
required this.pickerItemCount,
Key? key}) : super(key: key);