From 3590465c718063ed1e5dd2232c59a0295cbd15de Mon Sep 17 00:00:00 2001 From: dab246 Date: Fri, 28 Jul 2023 00:32:33 +0700 Subject: [PATCH] TF-2057 Enable scroll page view when email has calendar event (cherry picked from commit a41b10bb30634d99c203ee1b0047b2a1110e2055) --- .../presentation/controller/single_email_controller.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/features/email/presentation/controller/single_email_controller.dart b/lib/features/email/presentation/controller/single_email_controller.dart index 8d75bf248..8ad0ce604 100644 --- a/lib/features/email/presentation/controller/single_email_controller.dart +++ b/lib/features/email/presentation/controller/single_email_controller.dart @@ -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; + } } \ No newline at end of file