werner-scholtz / kalender

An elegantly crafted Flutter calendar UI package.
MIT License
105 stars 28 forks source link

WorkWeekConfiguration day columns not equal in width on first week loaded #99

Open mat-duf opened 5 days ago

mat-duf commented 5 days ago

Bug Description : When loading the calendar with work week or week configuration, the day columns take up equal space, except for the last day of the week that takes up twice as much width as the other days. When switching to other weeks, the problem does not occur, and when switching back to current week, it still occurs.

To Reproduce : Steps to reproduce bug :

  1. Clone project
  2. Run project locally with Flutter 3.22.0 using command flutter run -d chrome from the "example" folder
  3. Switch the calendar configuration to Week or Work Week using the top left dropdown button.
  4. Notice that all 4 columns are not the same width and the last one is twice as large as the others (5. Switch to next and back to current week to see that the issue is still present)

Screenshot : image

Notes : I also had this issue with the WeekConfiguration (and WorkWeekConfiguration) on my local project using Kalender 0.3.9 and a previous version of Flutter but was unable to reproduce it with the example.

werner-scholtz commented 4 days ago

Heyo, thanks for letting me know. I'm unfortunately not going to be fixing it in version v0.4.0 as I'm currently working on v0.5.0 which already contains a fix for this, v0.5.0 will probably be released before the end of the year.