DatePicker class
Constructors
-
DatePicker({Key? key, bool allowClear = true, bool autoFocus = false, bool bordered = true, Widget dateBuilder(DateTime currentDate, DateTime today)?, bool disabled = false, bool disabledDate(DateTime currentDate)?, bool inputReadOnly = false, DatePickerMode? mode, Widget? nextIcon, bool? open, Widget panelBuilder()?, Picker picker = Picker.date, String? placeholder, Alignment placement = Alignment.bottomLeft, Widget? prevIcon, DatePickerSize size = DatePickerSize.middle, DatePickerStatus? status, Widget? suffixIcon, Widget? superNextIcon, Widget? superPrevIcon, void onOpenChange(bool open)?, void onPanelChange(DateTime value, DatePickerMode mode)?, DateTime? defaultPickerValue, DateTime? defaultValue, bool disabledTime(DateTime date)?, String format = 'YYYY-MM-DD', bool? showNow, bool? showTime, bool showToday = true, DateTime? value, void onChange(DateTime date, String dateString)?, void onOk()?})
-
const
-
DatePicker.month({Key? key, bool allowClear = true, bool autoFocus = false, bool bordered = true, Widget dateBuilder(DateTime currentDate, DateTime today)?, bool disabled = false, bool disabledDate(DateTime currentDate)?, bool inputReadOnly = false, DatePickerMode? mode, Widget? nextIcon, bool? open, Widget panelBuilder()?, Picker picker = Picker.date, String? placeholder, Alignment placement = Alignment.bottomLeft, Widget? prevIcon, DatePickerSize size = DatePickerSize.middle, DatePickerStatus? status, Widget? suffixIcon, Widget? superNextIcon, Widget? superPrevIcon, void onOpenChange(bool open)?, void onPanelChange(DateTime value, DatePickerMode mode)?, DateTime? defaultPickerValue, DateTime? defaultValue, String format = 'YYYY-MM', void monthCellBuilder(DateTime date)?, DateTime? value, void onChange(DateTime date, String dateString)?})
-
const
-
DatePicker.quarter({Key? key, bool allowClear = true, bool autoFocus = false, bool bordered = true, Widget dateBuilder(DateTime currentDate, DateTime today)?, bool disabled = false, bool disabledDate(DateTime currentDate)?, bool inputReadOnly = false, DatePickerMode? mode, Widget? nextIcon, bool? open, Widget panelBuilder()?, Picker picker = Picker.date, String? placeholder, Alignment placement = Alignment.bottomLeft, Widget? prevIcon, DatePickerSize size = DatePickerSize.middle, DatePickerStatus? status, Widget? suffixIcon, Widget? superNextIcon, Widget? superPrevIcon, void onOpenChange(bool open)?, void onPanelChange(DateTime value, DatePickerMode mode)?, DateTime? defaultPickerValue, DateTime? defaultValue, String format = 'YYYY-QQ', DateTime? value, void onChange(DateTime date, String dateString)?})
-
const
-
DatePicker.week({Key? key, bool allowClear = true, bool autoFocus = false, bool bordered = true, Widget dateBuilder(DateTime currentDate, DateTime today)?, bool disabled = false, bool disabledDate(DateTime currentDate)?, bool inputReadOnly = false, DatePickerMode? mode, Widget? nextIcon, bool? open, Widget panelBuilder()?, Picker picker = Picker.date, String? placeholder, Alignment placement = Alignment.bottomLeft, Widget? prevIcon, DatePickerSize size = DatePickerSize.middle, DatePickerStatus? status, Widget? suffixIcon, Widget? superNextIcon, Widget? superPrevIcon, void onOpenChange(bool open)?, void onPanelChange(DateTime value, DatePickerMode mode)?, DateTime? defaultPickerValue, DateTime? defaultValue, String format = 'YYYY-WW', DateTime? value, void onChange(DateTime date, String dateString)?})
-
const
-
DatePicker.year({Key? key, bool allowClear = true, bool autoFocus = false, bool bordered = true, Widget dateBuilder(DateTime currentDate, DateTime today)?, bool disabled = false, bool disabledDate(DateTime currentDate)?, bool inputReadOnly = false, DatePickerMode? mode, Widget? nextIcon, bool? open, Widget panelBuilder()?, Picker picker = Picker.date, String? placeholder, Alignment placement = Alignment.bottomLeft, Widget? prevIcon, DatePickerSize size = DatePickerSize.middle, DatePickerStatus? status, Widget? suffixIcon, Widget? superNextIcon, Widget? superPrevIcon, void onOpenChange(bool open)?, void onPanelChange(DateTime value, DatePickerMode mode)?, DateTime? defaultPickerValue, DateTime? defaultValue, String format = 'YYYY', DateTime? value, void onChange(DateTime date, String dateString)?})
-
const