casvanluijtelaar / paged_vertical_calendar

A simple paginated framework for implementing calendar based interfaces.
Apache License 2.0
39 stars 33 forks source link

Allow Saturday as week start #46

Open 12people opened 5 months ago

12people commented 5 months ago

There are some locales that use Saturday as the week start.

Instead of having a startWeekWithSunday bool argument, how about an argument that takes the first day of the week index (where 0 is Sunday and 6 Saturday), so that one could pass the result of MaterialLocalizations.of(context).firstDayOfWeekIndex to PagedVerticalCalendar directly?

casvanluijtelaar commented 5 months ago

No idea that was a thing, yes that's definitely a more reasonable solution