werner-scholtz / kalender

An elegantly crafted Flutter calendar UI package.
MIT License
87 stars 23 forks source link

Tiles style enhancements #83

Open NobleO11 opened 1 month ago

NobleO11 commented 1 month ago

Hello @werner-scholtz ,

I was just wondering if it is possible to make a tile have more than one color.

for example, an event that lasts 10 days, can i make the first 2 days and last 2 days show different color with the same event without creating new event? if it is not already there would you consider doing it in the next release?

thank you so much

werner-scholtz commented 1 month ago

Hi, because the kalendar does not do any styling of event tiles itself all I can do is make it possible to do something like that. It should be possible to pass some more data to event tiles ex. the number of days spanned and the date that an event tile is rendered on, which would allow you to implement custom logic for deciding on colours.

Would something like this work for you ?

NobleO11 commented 1 month ago

yes this is what i am talking about, it will work perfectly, thank you