macos_ui icon indicating copy to clipboard operation
macos_ui copied to clipboard

add `initialDate` to `MacosDatePicker`

Open Luckey-Elijah opened this issue 1 year ago • 1 comments

Use case

I'd like to control the initial date set in MacosDatePicker widget.

Proposal

Create a parameter initialDate that sets _MacosDatePickerState._initialDate on init state. If the value of the parameter initialDate is null, then use DateTime.now().

Example of ideal usage:

MacosDatePicker(
  style: DatePickerStyle.textual,
  initialDate: DateTime(2022, 10, 10),
  onDateChanged: _onDateChanged,
)

Luckey-Elijah avatar Oct 10 '22 23:10 Luckey-Elijah

Feel free to assign to me for a contribution :smile:

Luckey-Elijah avatar Oct 10 '22 23:10 Luckey-Elijah