DateSelector constructor
const
DateSelector({
- Key? key,
- required dynamic selectedDate(),
- Color primaryColor = StandardFieldStyle.primaryColor,
- Color fillColor = StandardFieldStyle.fillColor,
- Color calendarBackgroundColor = IntelligentsiaColors.white,
- Color calendarFontColor = StandardFieldStyle.primaryColor,
- Color calendarCircleColor = StandardFieldStyle.primaryColor,
- Color calendarFontColorOnCircle = IntelligentsiaColors.white,
- String fieldName = "Date of Birth",
- Color? fieldNameColor,
- double fieldFontSize = StandardFieldStyle.fieldFontSize,
- FontWeight fieldFontWeight = StandardFieldStyle.fieldFontWeight,
- String hintText = "Select your birth date",
- Color hintTextColor = StandardFieldStyle.hintTextColor,
- double hintTextFontSize = StandardFieldStyle.hintTextFontSize,
- FontWeight hintTextFontWeight = StandardFieldStyle.hintTextFontWeight,
- Color? iconColor,
- double iconSize = StandardFieldStyle.iconSize,
- bool outlinedIcon = StandardFieldStyle.outlinedIcon,
- EdgeInsets insidePadding = StandardFieldStyle.insidePadding,
- EdgeInsets outsidePadding = StandardFieldStyle.outsidePadding,
- BorderRadius borderRadius = StandardFieldStyle.borderRadius,
- BoxBorder? borderStyle,
- DateTime? minDate,
- 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,
});