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

[syncfusion_flutter_calendar] 'SelectionDetails' is imported from both packages #2193

Open
MarlonJD opened this issue Dec 3, 2024 · 5 comments
Labels
calendar Calendar component open Open

Comments

@MarlonJD
Copy link

MarlonJD commented Dec 3, 2024

Bug description

syncfusion_flutter_calendar cannot build on windows

[D:\a\monolibmobile\monolibmobile\packages\apps\monolibdesktop\build\windows\x64\flutter\flutter_assemble.vcxproj]
/C:/Users/runneradmin/AppData/Local/Pub/Cache/hosted/pub.dev/syncfusion_flutter_calendar-27.2.5/lib/src/calendar/views/calendar_view.dart(9404,38): error GF8E3531A: 'SelectionDetails' is imported from both 'package:flutter/src/widgets/selectable_region.dart' and 'package:syncfusion_flutter_calendar/src/calendar/common/calendar_view_helper.dart'. [D:\a\monolibmobile\monolibmobile\packages\apps\monolibdesktop\build\windows\x64\flutter\flutter_assemble.vcxproj]
/C:/Users/runneradmin/AppData/Local/Pub/Cache/hosted/pub.dev/syncfusion_flutter_calendar-27.2.5/lib/src/calendar/appointment_layout/allday_appointment_layout.dart(1439,31): error GF8E3531A: 'SelectionDetails' is imported from both 'package:flutter/src/widgets/selectable_region.dart' and 'package:syncfusion_flutter_calendar/src/calendar/common/calendar_view_helper.dart'. [D:\a\monolibmobile\monolibmobile\packages\apps\monolibdesktop\build\windows\x64\flutter\flutter_assemble.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5): error MSB8066: Custom build for 'D:\a\monolibmobile\monolibmobile\packages\apps\monolibdesktop\build\windows\x64\CMakeFiles\2600f2557ff2e8f8bc32052bb095c7da\flutter_windows.dll.rule;D:\a\monolibmobile\monolibmobile\packages\apps\monolibdesktop\build\windows\x64\CMakeFiles\0ce7c48fd72248f6b0052d60643375e2\flutter_assemble.rule;D:\a\monolibmobile\monolibmobile\packages\apps\monolibdesktop\windows\flutter\CMakeLists.txt' exited with code 1. [D:\a\monolibmobile\monolibmobile\packages\apps\monolibdesktop\build\windows\x64\flutter\flutter_assemble.vcxproj]
Building Windows application...                                    95.7s
Build process failed.
Error: Process completed with exit code 1.

Steps to reproduce

flutter build windows --release

Code sample

Code sample
Padding(
  padding: const EdgeInsets.symmetric(horizontal: 16),
  child: SizedBox(
    height: MediaQuery.of(context).size.height * 0.85,
    child: SfCalendar(
      view: CalendarView.day,
      allowDragAndDrop: true,
      showNavigationArrow: true,
      dataSource: MeetingDataSource(
        getDataSources(),
      ),
      onDragUpdate: dragUpdate,
      onDragStart: dragStart,
      onDragEnd: dragEnd,
    ),
  ),
),

Screenshots or Video

Screenshots / Video demonstration

Stack Traces

Stack Traces
[Add the Stack Traces here]

On which target platforms have you observed this bug?

Windows

Flutter Doctor output

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel main, 3.27.0-1.0.pre.685, on macOS 15.1.1 24B91 darwin-arm64, locale tr-TR)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.1)
[✓] VS Code (version 1.96.0-insider)
[✓] Connected device (3 available)
[✓] Network resources

• No issues found!

@ManiKesavaraj
Copy link
Contributor

ManiKesavaraj commented Dec 16, 2024

Hi @MarlonJD ,

We have checked the mentioned issue and attempted to replicate the report issue in SfCalendar version 27.2.4 using the web platform you specified.

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.

Screenshot:

Screenshot 2024-12-14 123911

Regards,
Naveen K.

667062.zip

@MarlonJD
Copy link
Author

Error was on 3.27.0-1.0.pre.685. Did you tried on new flutter 3.27 stable?

@Tamburello-ua
Copy link

The same issue

flutter doctor -v
[✓] Flutter (Channel master, 3.28.0-2.0.pre.38536, on macOS 14.6.1 23G93 darwin-x64, locale en-UA)
• Flutter version 3.28.0-2.0.pre.38536 on channel master at /Users/user/development/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 1398dc7eec (35 hours ago), 2024-12-17 14:30:30 -0800
• Engine revision 6a75cb6a6a
• Dart version 3.7.0 (build 3.7.0-259.0.dev)
• DevTools version 2.41.0

Failed to build iOS app

Error (Xcode): ../../.pub-cache/hosted/pub.dev/syncfusion_flutter_calendar-28.1.33/lib/src/calendar/views/calendar_view.dart:20:1: Error: 'SelectionDetails' is
imported from both 'package:flutter/src/widgets/selectable_region.dart' and 'package:syncfusion_flutter_calendar/src/calendar/common/calendar_view_helper.dart'.

Encountered error while archiving for device.

@Tamburello-ua
Copy link

And

Failed to build iOS app
Error (Xcode): ../../.pub-cache/hosted/pub.dev/syncfusion_flutter_calendar-28.1.35/lib/src/calendar/views/calendar_view.dart:20:1: Error: 'SelectionDetails' is
imported from both 'package:flutter/src/widgets/selectable_region.dart' and 'package:syncfusion_flutter_calendar/src/calendar/common/calendar_view_helper.dart'.

Encountered error while archiving for device.

@MarlonJD
Copy link
Author

I can confirm my changes not breaking any old versions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
calendar Calendar component open Open
Projects
None yet
Development

No branches or pull requests

4 participants