flutter_date_pickers
flutter_date_pickers copied to clipboard
Decorations for some disabled dates
It could be nice to be able to add decorations for some disabled dates. For example for booking we want to display weekend and holidays in red color but dates before firstDate and after lastDate in grey.
Can u assign it to me? I wanna try
@AlbertoYabeda yes, you can suggest any decision. It would be great if you describe here what changes you would like to do before start coding. If you prefer make pr you can try as well.
I was looking at one of the source code. So, I noticed there are an array and a variable responsible to control de week days. I was thinking, to solve this issue, using the variable weekday to see if the weekday is equal to six or seven, then paint to red. for the user to know its a weekend. about the days before and after the selected days, I was thinking about working with an array to paint the dates amongst the selected days (not that sure).
thanks for your time.
@AlbertoYabeda sorry for delay. I believe this should be more generic solution. Maybe user would like to set special decoration not only for weekdays. For example some government services may have not working day at Wednesday. Thank you for your impact anyway!
https://github.com/MariaMelnik/flutter_date_pickers/pull/102 . I add new styles for weekend. You can check it