CustomDatePicker constructor
const
CustomDatePicker({
- Key? key,
- Widget? leading,
- required ValueSetter<
DateTime> onSelect, - required String label,
- bool showUpperLabel = true,
- double fontSize = 16,
- Color? labelColor,
- bool imageHasTint = false,
- Color? primaryColor,
- String dateFormat = 'dd/MM/yyyy',
- Color? backgroundColor,
- Color? borderColor,
- double? borderRadius,
- DateTime? initialDate,
- bool startFromToday = false,
- bool showTrailingArrow = true,
Implementation
const CustomDatePicker({
super.key,
this.leading,
required this.onSelect,
required this.label,
this.showUpperLabel = true,
this.fontSize = 16,
this.labelColor, // Default to null
this.imageHasTint = false,
this.primaryColor, // Default to null
this.dateFormat = 'dd/MM/yyyy',
this.backgroundColor, // Default to null
this.borderColor, // Default to null
this.borderRadius, // Default to null
this.initialDate,
this.startFromToday = false,
this.showTrailingArrow = true,
});