DatePicker constructor
const
DatePicker(
- DateTime startDate, {
- Key? key,
- double width = 60,
- double height = 90,
- DatePickerController? controller,
- TextStyle monthTextStyle = defaultMonthTextStyle,
- TextStyle dayTextStyle = defaultDayTextStyle,
- TextStyle dateTextStyle = defaultDateTextStyle,
- Color selectedTextColor = Colors.white,
- Color selectionColor = AppColors.defaultSelectionColor,
- Color deactivatedColor = AppColors.defaultDeactivatedColor,
- BorderRadiusGeometry borderRadius = const BorderRadius.all(Radius.circular(8.0)),
- DateTime? initialSelectedDate,
- List<
DateTime> ? activeDates, - List<
DateTime> ? inactiveDates, - int daysCount = 500,
- DateChangeListener? onDateChange,
- bool reverseDays = false,
- bool animateToSelection = false,
- String locale = "de_DE",
Implementation
const DatePicker(
this.startDate, {
super.key,
this.width = 60,
this.height = 90,
this.controller,
this.monthTextStyle = defaultMonthTextStyle,
this.dayTextStyle = defaultDayTextStyle,
this.dateTextStyle = defaultDateTextStyle,
this.selectedTextColor = Colors.white,
this.selectionColor = AppColors.defaultSelectionColor,
this.deactivatedColor = AppColors.defaultDeactivatedColor,
this.borderRadius = const BorderRadius.all(
Radius.circular(
8.0,
),
),
this.initialSelectedDate,
this.activeDates,
this.inactiveDates,
this.daysCount = 500,
this.onDateChange,
this.reverseDays = false,
this.animateToSelection = false,
this.locale = "de_DE",
}) : assert(
activeDates == null || inactiveDates == null,
"Can't "
"provide both activated and deactivated dates List at the same time.");