DatePickerTimelineFlutter icon indicating copy to clipboard operation
DatePickerTimelineFlutter copied to clipboard

Can we deactivate all the future dates from next month?

Open ziagit opened this issue 2 years ago • 1 comments

Currently we can deactivate a list of datetimes, how can we deactivate all the future dates from next month? How can I achieve it in this plugin? if not possible can you add this feature? Or add an end date to show only 30 days from today.

here is the code.

  List<DateTime> deactivatedDates() {
    return [
      DateTime.now().add(Duration(days: 31)),
      DateTime.now().add(Duration(days: 32)),
      DateTime.now().add(Duration(days: 33)),
      DateTime.now().add(Duration(days: 34)),
      DateTime.now().add(Duration(days: 35)),
...
..
..
    ];
  }

Thanks,

ziagit avatar Mar 25 '23 08:03 ziagit

Hello! is there any update on this request ? is highly important to be able do reactive all future dates.

juanpfloreez avatar Feb 28 '24 21:02 juanpfloreez