-
Notifications
You must be signed in to change notification settings - Fork 893
Open
Labels
Description
Bug description
I encounted a possible bug, that unables in resource view + timelineMonth
view using drag and drop functionality vertically, causing in a worst case scenario duplication of dragged appointment. Only possible directions to drag and drop are diagonally and horizontally as shown in video below.
Also vertical drag and drop only works at first (you cannot drag any appointment yet), but after that it goes to the state shown in the video
Steps to reproduce
- Use Resource View
- Use SfCalendar with
allowDragAndDrop
totrue
and withtimelineMonth
view
Code sample
Code sample
SfCalendar(
showDatePickerButton: true,
allowAppointmentResize: true,
allowDragAndDrop: true,
view: widget.allowedViews.second,
allowedViews: widget.allowedViews,
timeSlotViewSettings: const TimeSlotViewSettings(timeFormat: 'HH:mm'),
resourceViewSettings: ResourceViewSettings(
displayNameTextStyle: Theme.of(context).textTheme.labelSmall,
visibleResourceCount: isLargeSize ? -1
),
controller: _controller,
dataSource: ResourceDataSource(
widget.appointments.toList(),
widget.resources.toList(),
),
),
Screenshots or Video
Screenshots / Video demonstration
sfcalendar_timelinemonth_drag.mp4
Stack Traces
Stack Traces
[Add the Stack Traces here]
On which target platforms have you observed this bug?
Web
Flutter Doctor output
Doctor output
[✓] Flutter (Channel stable, 3.27.4, on Microsoft Windows [Version 10.0.26100.6584], locale en-US)
• Flutter version 3.27.4 on channel stable at C:\Users\barte\fvm\versions\3.27.4
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision d8a9f9a52e (8 months ago), 2025-01-31 16:07:18 -0500
• Engine revision 82bd5b7209
• Dart version 3.6.2
• DevTools version 2.40.3
[✓] Windows Version (Installed version of Windows is version 10 or higher)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at C:\Users\barte\AppData\Local\Android\sdk
• Platform android-35, build-tools 34.0.0
• Java binary at: C:\Users\barte\AppData\Local\Programs\Android Studio\jbr\bin\java
• Java version OpenJDK Runtime Environment (build 17.0.11+0--11852314)
• All Android licenses accepted.
[✓] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[✓] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.10.5)
• Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
• Visual Studio Community 2022 version 17.10.35122.118
• Windows 10 SDK version 10.0.22621.0
[✓] Android Studio (version 2024.2)
• Android Studio at C:\Users\barte\AppData\Local\Programs\Android Studio
• 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.11+0--11852314)
[✓] VS Code (version 1.102.3)
• VS Code at C:\Users\barte\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.114.0
[✓] Connected device (2 available)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.26100.6584]
• Chrome (web) • chrome • web-javascript • Google Chrome 140.0.7339.128
[✓] Network resources
• All expected network resources are available.
skutimechanic, Artur512 and fatyga