AtomicDatePicker constructor
const
AtomicDatePicker({
- Key? key,
- DateTime? initialDate,
- DateTime? firstDate,
- DateTime? lastDate,
- ValueChanged<
DateTime?> ? onDateSelected, - DateTime? currentDate,
- DatePickerMode initialDatePickerMode = DatePickerMode.day,
- SelectableDayPredicate? selectableDayPredicate,
- String? helpText,
- String? cancelText,
- String? confirmText,
- Locale? locale,
- RouteSettings? routeSettings,
- TextDirection? textDirection,
- TransitionBuilder? builder,
- DatePickerEntryMode initialEntryMode = DatePickerEntryMode.calendar,
- String? fieldHintText,
- String? fieldLabelText,
- String? errorFormatText,
- String? errorInvalidText,
- TextInputType? keyboardType,
- AtomicDatePickerVariant variant = AtomicDatePickerVariant.filled,
- AtomicDatePickerSize size = AtomicDatePickerSize.medium,
- bool showIcon = true,
- bool enabled = true,
- bool readOnly = false,
- String? label,
- String? helperText,
- String? errorText,
- String dateFormat()?,
Implementation
const AtomicDatePicker({
super.key,
this.initialDate,
this.firstDate,
this.lastDate,
this.onDateSelected,
this.currentDate,
this.initialDatePickerMode = DatePickerMode.day,
this.selectableDayPredicate,
this.helpText,
this.cancelText,
this.confirmText,
this.locale,
this.useRootNavigator = true,
this.routeSettings,
this.textDirection,
this.builder,
this.initialEntryMode = DatePickerEntryMode.calendar,
this.fieldHintText,
this.fieldLabelText,
this.errorFormatText,
this.errorInvalidText,
this.keyboardType,
this.variant = AtomicDatePickerVariant.filled,
this.size = AtomicDatePickerSize.medium,
this.showIcon = true,
this.enabled = true,
this.readOnly = false,
this.label,
this.helperText,
this.errorText,
this.dateFormat,
});