macos_ui icon indicating copy to clipboard operation
macos_ui copied to clipboard

add `initialDate` to `MacosDatePicker`

Open Luckey-Elijah opened this issue 3 years 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

I think this is a reasonable request. @Luckey-Elijah Are you still interested in contributing?

GroovinChip avatar Jan 14 '23 15:01 GroovinChip

Yes, I can work on this!

Luckey-Elijah avatar Jan 15 '23 21:01 Luckey-Elijah