CustomDatePicker constructor

const CustomDatePicker({
  1. Key? key,
  2. Widget? leading,
  3. required ValueSetter<DateTime> onSelect,
  4. required String label,
  5. bool showUpperLabel = true,
  6. double fontSize = 16,
  7. Color? labelColor,
  8. bool imageHasTint = false,
  9. Color? primaryColor,
  10. String dateFormat = 'dd/MM/yyyy',
  11. Color? backgroundColor,
  12. Color? borderColor,
  13. double? borderRadius,
  14. DateTime? initialDate,
  15. bool startFromToday = false,
  16. 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,
});