alanchan-dev/OmniDateTimePicker

Cannot get value

Closed this issue · 1 comments

whenever I try to get the value of the showOmniDateTimePicker it doesn't work, what's the right method to get it's value?

@MLiranG as shown in the usage part,
Depending on if you are going to use a single datetime selector or a range selector, you can do it by:

DateTime? dateTime = await showOmniDateTimePicker(context: context);

or

List<DateTime>? dateTimeList = await showOmniDateTimeRangePicker(context: context);

the dateTime or dateTimeList will contain a DateTime data that you can use.