Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[syncfusion_flutter_calendar] Enable Automatic Adjustment of numberOfWeeksInView in SfCalendar Month View #2281

Open
3kdeveloper opened this issue Feb 12, 2025 · 0 comments
Labels
calendar Calendar component open Open

Comments

@3kdeveloper
Copy link

Use case

Currently, the numberOfWeeksInView property in SfCalendar's month view is static, requiring manual adjustment. Unlike Google Calendar, it does not automatically adapt based on the number of weeks in a given month (e.g., some months have 5 weeks, others 6).
Requesting a feature that dynamically adjusts the numberOfWeeksInView based on the selected month to provide a more intuitive calendar experience.

Proposal

The current implementation of the SfCalendar in month view requires a static value for numberOfWeeksInView. This means developers must manually set it to a fixed number (e.g., 5 or 6 weeks), which does not dynamically adjust based on the actual number of weeks in a month.

For example:

February 2025 (4 weeks) displays 5 or 6 weeks if set manually.
March 2025 (6 weeks) might get cut off if the numberOfWeeksInView is set to 5.
This behavior differs from Google Calendar, which automatically adjusts the displayed weeks based on the number of weeks each month.

@VijayakumarMariappan VijayakumarMariappan added calendar Calendar component open Open labels Feb 13, 2025
@3kdeveloper 3kdeveloper changed the title syncfusion_flutter_calendar Enable Automatic Adjustment of numberOfWeeksInView in SfCalendar Month View [syncfusion_flutter_calendar] Enable Automatic Adjustment of numberOfWeeksInView in SfCalendar Month View Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
calendar Calendar component open Open
Projects
None yet
Development

No branches or pull requests

2 participants