Closed Luckey-Elijah closed 1 year ago
I'd like to control the initial date set in MacosDatePicker widget.
MacosDatePicker
Create a parameter initialDate that sets _MacosDatePickerState._initialDate on init state. If the value of the parameter initialDate is null, then use DateTime.now().
initialDate
_MacosDatePickerState._initialDate
null
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!
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 parameterinitialDate
isnull
, then useDateTime.now()
.Example of ideal usage: