Open donsafar opened 3 months ago
hi @donsafar , you can try setting weekEnds
parameter to NOT include monday https://github.com/Bdaya-Dev/flutter_gantt_chart/blob/5ea903d8378f67b620f2b609d96a3675949853a2/lib/src/gantt_view.dart#L32
and startOfTheWeek
to be monday
To mark a special holiday, return it in isExtraHoliday
hi @donsafar , you can try setting
weekEnds
parameter to NOT include mondayand
startOfTheWeek
to be mondayTo mark a special holiday, return it in
isExtraHoliday
Actually, it should check if the date is a holiday then add 1 day to the date until you reach the next work day. eg. if the date is a Friday and it is a holiday, it would set the date to the next workday that is not a weekend date or a holiday
surely I can do some calculation to find the first workday, but it's better to make the API consumer choose this explicitly
Here is the error message - _AssertionError ('package:gantt_chart/src/gantt_view.dart': Failed assertion: line 44 pos 11: '!weekEnds.contains(startOfTheWeek)': startOfTheWeek must be a work day)
Today is Labor Day which is a holiday and falls on a Monday. Getting the error above. Is there a fix for this?