syncfusion / flutter-widgets

Syncfusion Flutter widgets libraries include high quality UI widgets and file-format packages to help you create rich, high-quality applications for iOS, Android, and web from a single code base.
1.59k stars 780 forks source link

appointmentBuilder fun is not working for CalendarView.day #2075

Closed Doublelae closed 1 month ago

Doublelae commented 1 month ago

Bug description

appointmentBuilder fun is not working for CalendarView.day . last month appointmentBuilder fun was working . But appointmentBuilder fun is working for CalendarView.week and CalendarView. Month

Steps to reproduce

appointmentBuilder fun is not working for CalendarView.day . last month appointmentBuilder fun was working . But appointmentBuilder fun is working for CalendarView.week and CalendarView. Month

Code sample

Code sample ```dart return SafeArea( child: SfCalendar( dataSource: getCalendarDataSource(widget.data), controller: widget.calendarController, view: CalendarView.day, allowViewNavigation: true, cellBorderColor: $styles.colors.grayBold, backgroundColor: AppTheme.whiteColor, appointmentBuilder: (context, calendarAppointmentDetails) { log("calendarAppointmentDetails ==> ${calendarAppointmentDetails}"); return AppointmentCellCard( data: calendarAppointmentDetails, onClicked: (val) { log("oncliced data ${val.id}"); final businessData = widget.data.where((e) => e.id == val.id).firstOrNull; showDialog( context: context, barrierDismissible: false, builder: (context) { return AppointmentDialog( data: businessData!, onSuccess: () { widget.calendarController.view = CalendarView.week; }, ); }); }, ); }, onSelectionChanged: (val) { log("onSelectionChanged==> ${val.date}"); }, onDragUpdate: (val) { log("onDragUpdate==> ${val}"); }), ); ```

Screenshots or Video

Screens ![Screenshot 2024-09-16 at 10 34 37](https://github.com/user-attachments/assets/0e7d61b5-1e19-45f9-8cef-bb56350f1e58) ![Screenshot 2024-09-16 at 10 34 55](https://github.com/user-attachments/assets/78f8f813-e3d0-42ea-bb3d-2439469c9609) [Upload media here]

Stack Traces

Stack Traces ```dart ```

On which target platforms have you observed this bug?

macOS

Flutter Doctor output

Doctor output ```console laelaewin@Laes-MacBook-Pro pos % flutter doctor -v [✓] Flutter (Channel stable, 3.24.0, on macOS 14.5 23F79 darwin-arm64, locale en-MM) • Flutter version 3.24.0 on channel stable at /Users/laelaewin/development/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 80c2e84975 (7 weeks ago), 2024-07-30 23:06:49 +0700 • Engine revision b8800d88be • Dart version 3.5.0 • DevTools version 2.37.2 [✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0-rc4) • Android SDK at /Users/laelaewin/Library/Android/sdk • Platform android-35, build-tools 35.0.0-rc4 • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11572160) • All Android licenses accepted. [✓] Xcode - develop for iOS and macOS (Xcode 15.4) • Xcode at /Applications/Xcode.app/Contents/Developer • Build 15F31d • CocoaPods version 1.15.2 [✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome [✓] Android Studio (version 2023.3) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11572160) [✓] IntelliJ IDEA Community Edition (version 2024.1.1) • IntelliJ at /Applications/IntelliJ IDEA CE.app • Flutter plugin version 81.0.2 • Dart plugin version 241.17502 [✓] VS Code (version 1.89.1) • VS Code at /Users/laelaewin/Downloads/Visual Studio Code.app/Contents • Flutter extension version 3.96.0 [✓] Connected device (3 available) • macOS (desktop) • macos • darwin-arm64 • macOS 14.5 23F79 darwin-arm64 • Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin • macOS 14.5 23F79 darwin-arm64 • Chrome (web) • chrome • web-javascript • Google Chrome 128.0.6613.138 [✓] Network resources • All expected network resources are available. • No issues found! ```
Mugunthan-Ramalingam commented 1 month ago

Hi @Doublelae,

We have checked the mentioned issue and tried to replicate the reported issue in SfCalendar with version 27.1.48 and 26.1.42.

  1. Ensured in windows, web platforms and Android.
  2. Checked the sample with appointmentBuilder with allowViews for different calendar views.

However, we were unable to reproduce it on our end. Please check the attached sample, and if you are still experiencing the issue, we request that you replicate it in the attached sample and provide us with more details regarding the specific scenario in which you are encountering this issue. This will help us to assist you more effectively.

Sample: gh_2075.zip

Regards, Mugunthan.

Doublelae commented 1 month ago

Hi @Mugunthan-Ramalingam thanks ! it is working