DropDownDate constructor
DropDownDate({
- Key? key,
- DateTime? currentDate,
- required DateTime? initialDate,
- required DateTime firstDate,
- required DateTime lastDate,
- required ValueChanged<
DateTime> onDateChanged, - ValueChanged<
DateTime> ? onDisplayedMonthChanged, - DatePickerMode initialCalendarMode = DatePickerMode.day,
- SelectableDayPredicate? selectableDayPredicate,
- Widget? customTopWidget,
- String? hintText,
- String? labelText,
- Widget? inputDescriptionWidget,
- bool showDoneOnHeader = false,
- Widget? bottomSheetTitle,
- bool isDismissible = true,
- Widget? submitButtonChild,
- int? submitButtonFlex,
- Widget? cancelButtonChild,
- EdgeInsets? buttonPadding,
- String? searchHintText = 'Search',
- bool fromSide = false,
- double? widthSide,
- EdgeInsetsGeometry? margin,
- Color? color,
- TextStyle? textStyle,
- TextStyle? textStyleSelected,
- Color? selectedColor,
- Color dropDownBackgroundColor = Colors.transparent,
- BottomSheetCalListener? bottomSheetListener,
- bool noCloseDialog = false,
Implementation
DropDownDate({
Key? key,
this.currentDate,
required this.initialDate,
required this.firstDate,
required this.lastDate,
required this.onDateChanged,
this.onDisplayedMonthChanged,
this.initialCalendarMode = DatePickerMode.day,
this.selectableDayPredicate,
this.customTopWidget,
this.hintText,
this.labelText,
this.inputDescriptionWidget,
this.showDoneOnHeader = false,
this.bottomSheetTitle,
this.isDismissible = true,
this.submitButtonChild,
this.submitButtonFlex,
this.cancelButtonChild,
this.buttonPadding,
this.searchHintText = 'Search',
this.fromSide = false,
this.widthSide,
this.margin,
this.color,
this.textStyle,
this.textStyleSelected,
this.selectedColor,
this.dropDownBackgroundColor = Colors.transparent,
this.bottomSheetListener,
this.noCloseDialog = false,
});