werner-scholtz / kalender

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

Horizontal free scroll through days #86

Open LearShachar opened 1 month ago

LearShachar commented 1 month ago

Horizontal free scrolling so the user can scroll the multi day view freely (similar to google calendar) and the date on top will stay connected to each day column.

werner-scholtz commented 1 month ago

So I created a proof of concept for this idea, there are still some challenges related to events that span across multiple days which must be solved before this is use-able.

  1. Currently this is using a PageView with a viewport fraction based on the number of days specified in the MultiDayViewConfiguration.freeScroll each of the pages then show a single day.
  2. The challenge regarding the multiday events is because the headers of the pages are not linked and thus do not update the height of the header widget, there is also the problem that the multiday events are split between the days where they should be a single tile.

https://github.com/user-attachments/assets/4eb48d32-b319-4035-83c4-48bc8657efb7