-
Notifications
You must be signed in to change notification settings - Fork 774
-
why viewChange is called 2 times when I select to view as month
SfCalendar(
view: CalendarView.schedule,
controller: homeController.middleController,
allowViewNavigation: false,
allowedViews: [
CalendarView.day,
CalendarView.week,
CalendarView.workWeek,
CalendarView.month,
CalendarView.schedule,
],
dataSource: MeetingDataSource(homeController.listMeeting),
firstDayOfWeek: 1,
todayHighlightColor: AppConstant.customButtonColor,
headerHeight: 0,
viewHeaderHeight: 56,
monthViewSettings: MonthViewSettings(
dayFormat: "EEEE",
showAgenda: false,
showTrailingAndLeadingDates: false,
appointmentDisplayMode: MonthAppointmentDisplayMode.appointment),
onTap: (CalendarTapDetails details) {
homeController.getInfoMeeting(details);
homeController.showRightPanelAppointments(details);
},
onLongPress: (calendarLongPressDetails) {
showMeetingCreateView(Get.context);
},
onViewChanged: (ViewChangedDetails viewChangedDetails) {
List<DateTime> dates = viewChangedDetails.visibleDates;
print("View Change $dates");
homeController.checkVisibleDate(dates);
},
viewHeaderStyle: ViewHeaderStyle(
backgroundColor: AppConstant.customHeaderCalenderColor,
),
timeSlotViewSettings:
TimeSlotViewSettings(dayFormat: "EEE", dateFormat: "dd"),
)
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment