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

Vertical scroll bar in CalendarView.timelineWeek #884

Open
kbessemer opened this issue Dec 19, 2024 · 1 comment
Open

Vertical scroll bar in CalendarView.timelineWeek #884

kbessemer opened this issue Dec 19, 2024 · 1 comment
Labels
calendar Calendar component waiting for customer Cannot make further progress until the customer responds

Comments

@kbessemer
Copy link

Use case

When using the Flutter widget SfCalendar, the view type of CalendarView.timelineWeek, there is only a horizontal scrollbar at the bottom of the view which shows the window is horizontally scrollable. But, if there are numerous resources on the view (Resource View, resources = users/individuals) then there is no vertical scrollbar to indicate to the user that it can be vertically scrolled.

Proposal

I drew an illustration of what I am looking for, over our current implementation.
Screenshot 2024-12-19 at 12 54 07 PM

@VijayakumarMariappan VijayakumarMariappan added open Open and need to address calendar Calendar component labels Dec 24, 2024
@AswiniDileep
Copy link

Hi @kbessemer,

We have analyzed your requirement, and currently, there is no direct support for vertical scrolling in SfCalendar. However, we have created a workaround to achieve this behavior. In this solution, we use a SingleChildScrollView to wrap the SfCalendar. By setting the height of the SizedBox nested inside, you can control the scrollable area based on the screen size, ensuring that the resources becomes vertically scrollable. We have attached a sample below for your reference.

   SingleChildScrollView(
      scrollDirection: Axis.vertical,
      child: SizedBox(
        height: MediaQuery.of(context).size.height * 5,
        child: SfCalendar(
          view: CalendarView.timelineWeek,
          dataSource: MeetingDataSource(),
          initialDisplayDate: DateTime.now(),
        ),
      ),
    ),

Please check and get back to us if you require further assistance.

Regards,
Aswini S.

GH_2220.zip
GH_2220_Demo.zip

@LavanyaGowtham2021 LavanyaGowtham2021 added waiting for customer Cannot make further progress until the customer responds and removed open Open and need to address labels Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
calendar Calendar component waiting for customer Cannot make further progress until the customer responds
Projects
None yet
Development

No branches or pull requests

4 participants