Skip to content

Commit 4fba373

Browse files
author
Bawantha Rajapaksha
committed
fix: 🐛 add scrollOffset listener
1 parent 76c5430 commit 4fba373

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/src/week_view/week_view.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,11 @@ class WeekViewState<T extends Object?> extends State<WeekView<T>> {
462462

463463
// Update builders and callbacks
464464
_assignBuilders();
465+
466+
if(widget.scrollOffset != oldWidget.scrollOffset) {
467+
_lastScrollOffset = widget.scrollOffset;
468+
_scrollController.jumpTo(widget.scrollOffset);
469+
}
465470
}
466471

467472
@override

0 commit comments

Comments
 (0)