Skip to content

Scroll Customizability Limitation : Exposing and allowing scroll controller to be specified on create rather than in onCalendarCreated #923

@PistonShot1

Description

@PistonShot1

This enhancement seems like necessary , as currently it is consuming both vertical and horizontal scroll direction and makes it quite difficult to customize the scroll behaviour of the calendar. This feature is related to the enhancement as mentioned in a previous issue/enhancement request , refer #792

I would normally handle it with NotificationListener and handle the seperate scroll action, like for the below case I could have allowed to pass the parent controller ( that is the SingleChildScrollView in this case) to handle the vertical direction scroll and allow this calendar widget to assume its scroll action for horizontal direction only, but this case I couldnt , as I have no way of accessing the PageController.

Below is demonstration of the issue for flexibility

WhatsApp.Video.2025-08-29.at.17.25.56.mp4

Suggestion

Perhaps can add a callback method to TableCalendar with the option of onBeforeCreated which expects an instance of ScrollController/PageController to be returned upon create.

This might require some major changes due to current implementation, would be better if existing maintainer to suggest the changes for PR @aleksanderwozniak

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions