Skip to content

Commit

Permalink
Add multiDateContentGeometry.resolveOffset(…) to README
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasWanke committed Aug 19, 2022
1 parent 5badd28 commit f3e00a1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,9 @@ final draggableEvent = PartDayDraggableEvent.forGeometryKeys(
// `child`, `childWhileDragging`, and the callbacks are available here as
// well.
);
// Alternatively, you can manually convert an offset to a `DateTime:`
final dateTime = geometryKey.currentState!.resolveOffset(globalOffset);
```

You could even offer to drag the event into one of multiple timetables:
Expand Down

0 comments on commit f3e00a1

Please sign in to comment.