syncfusion / flutter-examples

This repository contains the Syncfusion Flutter UI widgets examples and the guide to use them.
Other
1.98k stars 775 forks source link

SFCalendar problem with isAllDay appointments scroll #842

Closed andersonribeir closed 9 months ago

andersonribeir commented 10 months ago

I have an SfCalendar em flutter with several events marked as "isAllDay = true", however the display of the events below is not scrollable. Im using view.day .

Captura de Tela 2024-01-11 às 14 09 21

my SfCalendar:


SfCalendar(
                      view: CalendarView.day,
                      backgroundColor: Colors.white12,
                      dataSource: EventoDataSource(_events),
                      timeZone: 'America/Sao_Paulo',
                      allowViewNavigation: true,
                      showDatePickerButton: false,
                      showNavigationArrow: true,
                      showCurrentTimeIndicator: true,
                      showTodayButton: false,
                      initialDisplayDate: initialDate,
                      headerHeight: 40,
                      allowAppointmentResize: true,
                      todayHighlightColor: GlobalColors.mainColor,
                      onViewChanged: (ViewChangedDetails details) {
                        if (details.visibleDates[0] != dataInicial) {
                          // Atualiza a data inicial
                          dataInicial = details.visibleDates[0];
                          print(dataInicial);

                          // Chama a função para carregar eventos
                          carregaEventos(dataInicial);
                        }
                      },
                      onTap: (CalendarTapDetails details) {
                        if (details.targetElement ==
                            CalendarElement.appointment) {
                          Appointment appointment = details.appointments?.first;
                          final evento = _events.firstWhere((e) {
                            return e.identificador == appointment.id.toString();
                          });
                          _showEventDetails(evento);
                        }
                      },
                      timeSlotViewSettings: const TimeSlotViewSettings(
                        timeTextStyle: TextStyle(
                          fontSize: 12,
                          color: Colors.black,
                        ),
                        timeFormat: 'HH:mm',
                        timeIntervalWidth: 60,
                        startHour: 0,
                        endHour: 24,
                      ),
                    )
ghost commented 10 months ago

Hi @andersonribeir,

We would like to let you know that currently we don’t have support for ‘To view more events in a day to see all the events vertically’. However, we have considered your requirement as a new feature and logged feature request for it in our feedback portal.

We will prioritize the features of every release based on demand and priority. So, this feature will be available in any of our upcoming releases. You can also track the status of the feature with the feedback below.

FR Link,

https://www.syncfusion.com/feedback/50074/improve-the-behavior-of-all-day-panel-as-scrollable-in-the-flutter-event-calendar

Regards, Lokesh P.