Change height of resource and fix it on top

i am currently working on a SfCalendar in Flutter and I want to change the height of a resource to make it display the full information on the board. Like on my Screenshot the Resource "N/A":

Example

So the user drags the unassigned appointment, that will be loaded in Resource "N/A" to the technican like here to "T B".

Because there is lot of data in "N/A", the Text of the appointment is not showed but should be. Also, is it possible to fix the row with resource "N/A" on the top, so, when the user scrolls down, "N/A" group is always on screen?

Here is the code-snipped from the base SfCalendar Function and from the _resourceHeaderBuilder:

  /// Returns the calendar widget based on the properties passed
  SfCalendar _getMeetingRoomCalendar(
      [CalendarDataSource? _calendarDataSource, dynamic viewChangedCallback]) {
    return SfCalendar(
      showDatePickerButton: true,
      controller: _calendarController,
      allowDragAndDrop: true,
      allowedViews: _allowedViews,
      minDate: _minDate,
      timeRegionBuilder: _getSpecialRegionWidget,
      specialRegions: _specialTimeRegions,
      showNavigationArrow: true,
      dataSource: _calendarDataSource,
      onViewChanged: viewChangedCallback,
      resourceViewHeaderBuilder: _resourceHeaderBuilder,
      appointmentTimeTextFormat: 'HH:mm',
      timeSlotViewSettings: TimeSlotViewSettings(
        timeInterval: Duration(minutes: 15),
        timeFormat: 'HH:mm',
        startHour: 7,
        endHour: 18,
      ),
    );
  }

  /// Returns the widget for resource header.
  Widget _resourceHeaderBuilder(
      BuildContext context, ResourceViewHeaderDetails details) {
    final Random random = Random();

    int capacity = 0;
    if (_visibleAppointments.isNotEmpty) {
      capacity = 0;
      for (int i = 0; i < _visibleAppointments.length; i++) {
        final Appointment visibleApp = _visibleAppointments[i];
        if (visibleApp.resourceIds != null &&
            visibleApp.resourceIds!.isNotEmpty &&
            visibleApp.resourceIds!.contains(details.resource.id)) {
          capacity++;
        }
      }
    }

    String capacityString = 'Termine';

    return Container(
      height: 1000,
      child: Container(
        color: details.resource.color,
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          crossAxisAlignment: CrossAxisAlignment.center,
          children: <Widget>[
            icons[random.nextInt(5).toInt()],
            Text(
              details.resource.displayName,
              style: const TextStyle(
                  color: Colors.white, fontSize: 16, fontWeight: FontWeight.bold),
            ),
            Padding(
              padding: const EdgeInsets.only(top: 5),
              child: Row(
                mainAxisAlignment: MainAxisAlignment.center,
                crossAxisAlignment: CrossAxisAlignment.center,
                children: <Widget>[
                  const Text(
                    'Termine: ',
                    textAlign: TextAlign.center,
                    style: TextStyle(
                      color: Colors.white,
                      fontSize: 10,
                    ),
                  ),
                  Container(
                    child: Text(
                      capacity.toString(),
                      textAlign: TextAlign.center,
                      style: const TextStyle(
                          color: Colors.white,
                          fontSize: 12,
                          fontWeight: FontWeight.bold),
                    ),
                  )
                ],
              ),
            )
          ],
        ),
      )
    );
  }
}

I have tried it to set TimeSlotViewSettings() with height, but there was no change, also I tried to gave the Container in _resourceHeaderBuilder a height, but there was also no change.

Thank you.


9 Replies

IR Indumathi Ravichandran Syncfusion Team May 11, 2023 09:28 AM UTC

Hi,


We have logged the feature request for the “Height support for resource view in the Flutter event calendar (SfCalendar)”. We will implement this feature in any of our upcoming releases.


Now you can track the status of the feature report by using the following link.


Feature link:
https://www.syncfusion.com/feedback/29362/height-parameter-for-resource-view


At the planning stage for every release cycle, we review all open features and identify features for implementation based on specific parameters including product vision, technological feasibility, and customer interest. We will let you know when this feature is implemented. We appreciate your patience until then.


We are always trying to make our products better and feature requests like yours are a key part of our product growth efforts.


If you have any more specifications/suggestions for the feature request, you can add it as a comment in the portal and cast your vote to make it count. 


Regards,

Indumathi R



MR Mark Robin April 16, 2026 03:33 PM UTC

Hei!

SfCalendarissa resurssirivin korkeutta ei voi muuttaa suoraan resourceHeaderBuilder-widgetin height-arvolla – korkeus määräytyy kalenterin sisäisesti. Siksi tekemäsi muutos ei vaikuta.

Ratkaisu:

  • Voit kasvattaa rivin sisältöä epäsuorasti muuttamalla esimerkiksi timeSlotViewSettingstimeIntervalHeight, mikä antaa enemmän tilaa myös näkymälle.
  • Jos teksti ei näy, käytä lyhyempää tekstiä tai mukauta appointmentBuilder-widgetiä näyttämään sisältö paremmin.

“N/A” rivin kiinnittäminen ylös:

  • Tätä ei valitettavasti tueta suoraan SfCalendarissa.
  • Workaround: laita “N/A” erilliseen widgetiin kalenterin yläpuolelle tai käsittele se erillisenä resurssina UI:ssa.

Lopuksi: Suomessa ALV:n laskemiseen voit käyttää ALV-laskuri, joka auttaa arvonlisäveron nopeassa laskemisessa.



MR Mugunthan Ramalingam Syncfusion Team April 17, 2026 04:58 AM UTC

Hi Mark,
 

Thank you for your valuable suggestion. We are now proceeding to close this forum. Should you have any further questions or require additional assistance, please do not hesitate to contact us.


Regards,

Mugunthan.



C5 Clone 51 Job July 1, 2026 04:31 AM UTC

Exactly the kind of fix developers need for better UI control!

Last edited by war the knights two day ago



MR Mugunthan Ramalingam Syncfusion Team July 1, 2026 06:15 AM UTC

Hi Clone,

Thank you for your feedback. We are glad you found a workaround and it helped address your requirement. As mentioned earlier, we have logged a feature request for resource view height customization and shared it for tracking purposes. Currently, there are no immediate plans to include this enhancement in an upcoming release. You can also track the status of the feature with the feedback provided.

FR link:  Horizontal resource grouping support in the event calendar in Flutter | Feedback Portal

Regards,

Mugunthan.

 



JA Jay AReddick July 2, 2026 10:03 AM UTC

You may need to adjust the scheduler resource header template/CSS instead of the default height settings (tomb of the mask)pinning it to the top usually requires overriding the container styling to keep it fixed during scroll.




MR Mugunthan Ramalingam Syncfusion Team July 3, 2026 06:25 AM UTC

Hi Jay,

 

Thank you for sharing your suggestion.

 

As mentioned earlier, the Flutter SfCalendar Resource View does not currently support customizing the resource view height or pinning a resource at the top of the schedular. Therefore, the suggested approach of adjusting resource header styling or fixing a resource row at the top is not available in the current implementation.

 

we have logged a feature request for resource view customization and shared it for tracking purposes. Currently, there are no immediate plans to include this enhancement in an upcoming release. You can also track the status of the feature with the feedback provided.
 

FR link: https://www.syncfusion.com/feedback/15067/horizontal-resource-grouping-support-in-the-flutter-event-calendar-sfcalendar

 

 

If you have any additional requirements or use cases related to this feature request, please add them to the feedback portal, as they will help us better evaluate the enhancement.

 

Regards,

Mugunthan.



HA Hazzel July 14, 2026 11:18 AM UTC

Does anyone know how to change the height of resources in the Syncfusion calendar while keeping them fixed at the top during scrolling? ( https://www.syncfusion.com/forums/182272/change-height-of-resource-and-fix-it-on-top snow rider 3d)

If so, please share the code or specific instructions.



MR Mugunthan Ramalingam Syncfusion Team July 15, 2026 05:09 AM UTC

Hi Hazzel,

 

As mentioned earlier, the Flutter SfCalendar Resource View does not currently support customizing the resource view height or pinning a resource at the top of the schedular. Therefore, fixing a resource row at the top is not available in the current implementation.

 

we have logged a feature request for resource view customization and shared it for tracking purposes. Currently, there are no immediate plans to include this enhancement in an upcoming release. You can also track the status of the feature with the feedback provided.


FR link: https://www.syncfusion.com/feedback/15067/horizontal-resource-grouping-support-in-the-flutter-event-calendar-sfcalendar


 

If you have any additional requirements or use cases related to this feature request, please add them to the feedback portal, as they will help us better evaluate the enhancement.

 

Regards,

Mugunthan.


Loader.
Up arrow icon