macos_ui
macos_ui copied to clipboard
add `initialDate` to `MacosDatePicker`
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,
)
Feel free to assign to me for a contribution :smile:
I think this is a reasonable request. @Luckey-Elijah Are you still interested in contributing?
Yes, I can work on this!