FlutterWeekView icon indicating copy to clipboard operation
FlutterWeekView copied to clipboard

Fix resize not updating events correctly

Open dennis-flowscape opened this issue 3 months ago • 0 comments

[√] Flutter (Channel stable, 3.38.2, on Microsoft Windows [Version 10.0.26200.7309], locale en-SE)

Running the latest main and trying the example project's dynamic day view on Microsoft Edge does not allow resizing of events.

The callback in the resize for the DayView widget previously reported the same time for the event and the newEndTime.

onEventResized: (FlutterWeekViewEvent event, DateTime newEndTime)

This change fixes so that

  • The updateEvent method no longer makes a copy before making changes
  • The resize event now updates the event and passes the previous event (unchanged) and the resize drop point newEndTime

dennis-flowscape avatar Dec 05 '25 07:12 dennis-flowscape