From c021f27e638b74eb51ee033bdb8763500f1b8d94 Mon Sep 17 00:00:00 2001 From: Pushpam <93931528+Decoder07@users.noreply.github.com> Date: Thu, 25 Jul 2024 13:14:16 +0530 Subject: [PATCH] Fix: Leave room renders blank screen (#1805) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Added leave room fix * Fixed leave room issue * released sample app version 1.5.217 (517) 🍀 * 🤖 Automated Format and Fix --------- Co-authored-by: Decoder07 --- packages/hms_room_kit/lib/src/meeting/meeting_page.dart | 1 + packages/hms_room_kit/lib/src/meeting/meeting_store.dart | 1 - .../src/widgets/bottom_sheets/end_service_bottom_sheet.dart | 1 + packages/hmssdk_flutter/example/android/app/build.gradle | 4 ++-- packages/hmssdk_flutter/example/ios/Runner/Info.plist | 4 ++-- 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/packages/hms_room_kit/lib/src/meeting/meeting_page.dart b/packages/hms_room_kit/lib/src/meeting/meeting_page.dart index 3d5dfc85b..f290bffd7 100644 --- a/packages/hms_room_kit/lib/src/meeting/meeting_page.dart +++ b/packages/hms_room_kit/lib/src/meeting/meeting_page.dart @@ -94,6 +94,7 @@ class _MeetingPageState extends State { builder: (_, failureErrors, __) { if (failureErrors.item1) { WidgetsBinding.instance.addPostFrameCallback((_) { + context.read().removeAllBottomSheets(); Navigator.of(context).pushReplacement(MaterialPageRoute( builder: (context) => HMSLeftRoomScreen( isEndRoomCalled: failureErrors.item3, diff --git a/packages/hms_room_kit/lib/src/meeting/meeting_store.dart b/packages/hms_room_kit/lib/src/meeting/meeting_store.dart index 50bc49a90..a3730dd64 100644 --- a/packages/hms_room_kit/lib/src/meeting/meeting_store.dart +++ b/packages/hms_room_kit/lib/src/meeting/meeting_store.dart @@ -1433,7 +1433,6 @@ class MeetingStore extends ChangeNotifier void clearRoomState() async { // clearPIPState(); - removeAllBottomSheets(); removeListeners(); toggleAlwaysScreenOn(); diff --git a/packages/hms_room_kit/lib/src/widgets/bottom_sheets/end_service_bottom_sheet.dart b/packages/hms_room_kit/lib/src/widgets/bottom_sheets/end_service_bottom_sheet.dart index 6e7819beb..ac0f3cfd2 100644 --- a/packages/hms_room_kit/lib/src/widgets/bottom_sheets/end_service_bottom_sheet.dart +++ b/packages/hms_room_kit/lib/src/widgets/bottom_sheets/end_service_bottom_sheet.dart @@ -106,6 +106,7 @@ class _EndServiceBottomSheetState extends State { if (widget.onButtonPressed != null) { widget.onButtonPressed!(); } + context.read().removeBottomSheet(context); Navigator.pop(context); }, child: SizedBox( diff --git a/packages/hmssdk_flutter/example/android/app/build.gradle b/packages/hmssdk_flutter/example/android/app/build.gradle index 6918a4c48..bd317f8f6 100644 --- a/packages/hmssdk_flutter/example/android/app/build.gradle +++ b/packages/hmssdk_flutter/example/android/app/build.gradle @@ -36,8 +36,8 @@ android { applicationId "live.hms.flutter" minSdkVersion 21 targetSdkVersion 34 - versionCode 516 - versionName "1.5.216" + versionCode 517 + versionName "1.5.217" } signingConfigs { diff --git a/packages/hmssdk_flutter/example/ios/Runner/Info.plist b/packages/hmssdk_flutter/example/ios/Runner/Info.plist index 9e9fc85b5..0d0587ce8 100644 --- a/packages/hmssdk_flutter/example/ios/Runner/Info.plist +++ b/packages/hmssdk_flutter/example/ios/Runner/Info.plist @@ -21,7 +21,7 @@ CFBundlePackageType APPL CFBundleShortVersionString - 1.5.216 + 1.5.217 CFBundleSignature ???? CFBundleURLTypes @@ -48,7 +48,7 @@ CFBundleVersion - 516 + 517 ITSAppUsesNonExemptEncryption LSApplicationCategoryType