Skyost / FlutterWeekView

Displays a highly customizable week view (or day view) which is able to display events, to be scrolled, to be zoomed-in & out and a lot more !
https://pub.dev/packages/flutter_week_view
MIT License
208 stars 89 forks source link

Added a separator between day views on the Week View, and also a builder… #31

Closed luistrivelatto closed 4 years ago

luistrivelatto commented 4 years ago

…method in WeekViewStyle to customize it.

This adds a 1px VerticalDivider separating the DayViews in a WeekView. When the day view width is extended to fill the whole width available (default behaviour), this is almost the same as the previous rendering; but when the width is smaller than that (showing several days simultaneously on screen), I believe the separator makes it feel more tidy.

Skyost commented 4 years ago

Good, but I think we should also recalculate the left offset (when scrolling). Maybe also the default DayView width. I'm gonna review it deeper asap and will submit those changes (if needed).

Skyost commented 4 years ago

Okay, so as I said, we need to recalculate the left offset. This is not possible if the separator widget has a non-fixed width. That's why I removed the separator builder (but I still added some customization options).