1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[Flutter] date is not showing in SfCalendar on onViewChanged callback

Discussão em 'Mobile' iniciado por Stack, Novembro 6, 2024 às 11:22.

  1. Stack

    Stack Membro Participativo

    I am using SfCalendar in my Flutter application.When i change the current view of calendar, that is view swiped to previous /next view, I am not getting the details.

    Here is my code

    SfCalendar(
    controller: _calendarController,
    initialSelectedDate: DateTime.now(),
    view: CalendarView.schedule,
    dataSource: MeetingDataSource(_getMeetingSource()),
    onViewChanged: (ViewChangedDetails details) {
    print('here $details');
    // List<DateTime> dates = details.visibleDates;
    },
    scheduleViewSettings: const ScheduleViewSettings(
    hideEmptyScheduleWeek: true,
    weekHeaderSettings: WeekHeaderSettings(height: 0),
    monthHeaderSettings: MonthHeaderSettings(
    monthFormat: 'MMMM, yyyy',
    height: 0,
    textAlign: TextAlign.left,
    ),
    appointmentTextStyle:
    TextStyle(fontSize: 12, fontWeight: FontWeight.w500)),
    showDatePickerButton: true,
    ),


    it's not printing the details. I have added _calendarController, but still it's not working.

    Continue reading...

Compartilhe esta Página