How to resize the month cell or the whole calendar

I need the calendar to fit in the screen, right now the cell is too long and the calendar can be scrolled. Is there anyway to fix this ? 


1 Reply

IR Indumathi Ravichandran Syncfusion Team June 30, 2022 01:02 PM UTC

Hi Jonathan,


As per the current implementation of the calendar, month view doesn’t support for scrolling and there is no option to resize the month cells. But your requirement can be achieved by sample level by placing SfCalendar inside the Container widget and setting the height property. We have attached the code snippet for the same.


Code snippet:

child: Container(

  height: 500,

  child: SfCalendar(

    controller: _calendarController,

    view: CalendarView.month,

  ),

),


Screenshot:



We hope that this helps you. If possible, can you please share your requirement details clearly with illustration image. It would be helpful for us to analyze and provide you a solution at the earliest.


Regards,

Indumathi R


Loader.
Up arrow icon