Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

appointmentBuilder fun is not working for CalendarView.day #2075

Closed
Doublelae opened this issue Sep 16, 2024 · 2 comments
Closed

appointmentBuilder fun is not working for CalendarView.day #2075

Doublelae opened this issue Sep 16, 2024 · 2 comments
Labels
calendar Calendar component solved Solved the query using existing solutions

Comments

@Doublelae
Copy link

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
 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

On which target platforms have you observed this bug?

macOS

Flutter Doctor output

Doctor output
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!
@VijayakumarMariappan VijayakumarMariappan added calendar Calendar component open Open labels Sep 16, 2024
@Mugunthan-Ramalingam
Copy link

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.

@LavanyaGowtham2021 LavanyaGowtham2021 added waiting for customer response Cannot make further progress until the customer responds. and removed open Open labels Sep 20, 2024
@Doublelae
Copy link
Author

Hi @Mugunthan-Ramalingam thanks ! it is working

@LavanyaGowtham2021 LavanyaGowtham2021 added solved Solved the query using existing solutions and removed waiting for customer response Cannot make further progress until the customer responds. labels Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
calendar Calendar component solved Solved the query using existing solutions
Projects
None yet
Development

No branches or pull requests

4 participants