TF-2057 Enable scroll page view when email has calendar event

(cherry picked from commit a41b10bb30634d99c203ee1b0047b2a1110e2055)
This commit is contained in:
dab246
2023-07-28 00:32:33 +07:00
committed by Dat Vu
parent 51fe837493
commit 3590465c71
@@ -1279,6 +1279,11 @@ class SingleEmailController extends BaseController with AppLoaderMixin {
void _handleParseCalendarEventSuccess(ParseCalendarEventSuccess success) {
if (success.calendarEventList.isNotEmpty) {
calendarEvent.value = success.calendarEventList.first;
_enableScrollPageView();
}
}
void _enableScrollPageView() {
emailSupervisorController.scrollPhysicsPageView.value = null;
}
}