DateSelector constructor

const DateSelector({
  1. Key? key,
  2. required dynamic selectedDate(
    1. int year,
    2. int month,
    3. int day
    ),
  3. Color primaryColor = StandardFieldStyle.primaryColor,
  4. Color fillColor = StandardFieldStyle.fillColor,
  5. Color calendarBackgroundColor = IntelligentsiaColors.white,
  6. Color calendarFontColor = StandardFieldStyle.primaryColor,
  7. Color calendarCircleColor = StandardFieldStyle.primaryColor,
  8. Color calendarFontColorOnCircle = IntelligentsiaColors.white,
  9. String fieldName = "Date of Birth",
  10. Color? fieldNameColor,
  11. double fieldFontSize = StandardFieldStyle.fieldFontSize,
  12. FontWeight fieldFontWeight = StandardFieldStyle.fieldFontWeight,
  13. String hintText = "Select your birth date",
  14. Color hintTextColor = StandardFieldStyle.hintTextColor,
  15. double hintTextFontSize = StandardFieldStyle.hintTextFontSize,
  16. FontWeight hintTextFontWeight = StandardFieldStyle.hintTextFontWeight,
  17. Color? iconColor,
  18. double iconSize = StandardFieldStyle.iconSize,
  19. bool outlinedIcon = StandardFieldStyle.outlinedIcon,
  20. EdgeInsets insidePadding = StandardFieldStyle.insidePadding,
  21. EdgeInsets outsidePadding = StandardFieldStyle.outsidePadding,
  22. BorderRadius borderRadius = StandardFieldStyle.borderRadius,
  23. BoxBorder? borderStyle,
  24. DateTime? minDate,
  25. DateTime? maxDate,
})

Implementation

const DateSelector({
  super.key,
  required this.selectedDate,
  this.primaryColor = StandardFieldStyle.primaryColor,
  this.fillColor = StandardFieldStyle.fillColor,
  this.calendarBackgroundColor = IntelligentsiaColors.white,
  this.calendarFontColor = StandardFieldStyle.primaryColor,
  this.calendarCircleColor = StandardFieldStyle.primaryColor,
  this.calendarFontColorOnCircle = IntelligentsiaColors.white,

  // Field Name
  this.fieldName = "Date of Birth",
  this.fieldNameColor,
  this.fieldFontSize = StandardFieldStyle.fieldFontSize,
  this.fieldFontWeight = StandardFieldStyle.fieldFontWeight,

  // Hint Text
  this.hintText = "Select your birth date",
  this.hintTextColor = StandardFieldStyle.hintTextColor,
  this.hintTextFontSize = StandardFieldStyle.hintTextFontSize,
  this.hintTextFontWeight = StandardFieldStyle.hintTextFontWeight,

  // Prefix Icon
  this.iconColor,
  this.iconSize = StandardFieldStyle.iconSize,
  this.outlinedIcon = StandardFieldStyle.outlinedIcon,

  // Padding
  this.insidePadding = StandardFieldStyle.insidePadding,
  this.outsidePadding = StandardFieldStyle.outsidePadding,

  // Borders
  this.borderRadius = StandardFieldStyle.borderRadius,
  this.borderStyle,

  // Date
  this.minDate,
  this.maxDate,
});