You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
able to choose which days of the week is weekend
for example: in my country only saturday is the weekend day but the plugin has both sat and sun as the weekend
Actual behavior
Both saturday and sunday are marked as weekend
Steps to reproduce the behavior
a option to change the current weekend days
The text was updated successfully, but these errors were encountered:
How about adding a holidays attribute that takes a list of DateTime and displays those days in weekend color. This can be very helpful in adding public holidays. I did this by editing the library code. You can introduce this feature in new update too
implementation
//define list:
final List<DateTime> holidays;
//define bool test as you did for isToday and isSelectedDay
bool isHoliday = widget.holidays != null &&
widget.holidays.contains(DateTime(
year, month, index + 1 - this._startWeekday));
//check if it is a holiday
style: (index % 7 == 0 || index % 7 == 6 || isHoliday) &&
Version of flutter_calendar_carousel
1.1.9
Expected behavior
able to choose which days of the week is weekend
for example: in my country only saturday is the weekend day but the plugin has both sat and sun as the weekend
Actual behavior
Both saturday and sunday are marked as weekend
Steps to reproduce the behavior
a option to change the current weekend days
The text was updated successfully, but these errors were encountered: