From 372e2934d7741665338c8cd46d620d41f99978f6 Mon Sep 17 00:00:00 2001 From: Decoder07 Date: Thu, 6 Jun 2024 12:21:34 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20Automated=20Format=20and=20Fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/hms_room_kit/lib/src/meeting/meeting_store.dart | 6 +++--- .../src/widgets/grid_layouts/screen_share_grid_layout.dart | 4 +++- .../src/widgets/meeting_modes/custom_one_to_one_grid.dart | 3 ++- .../widgets/whiteboard_screenshare/screenshare_tile.dart | 1 - 4 files changed, 8 insertions(+), 6 deletions(-) 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 c758844d3..09d7b0c71 100644 --- a/packages/hms_room_kit/lib/src/meeting/meeting_store.dart +++ b/packages/hms_room_kit/lib/src/meeting/meeting_store.dart @@ -1755,11 +1755,11 @@ class MeetingStore extends ChangeNotifier int peerIndex = peerTracks.indexWhere( (element) => element.uid == peer.peerId + track.trackId); if (peerIndex != -1) { - ///This is done to handle the case when the screen share is stopped ///and the user is on the last page of the screen share - ///we need to move the user to the previous page - if (((screenShareCount - 1) == currentScreenSharePage) && currentScreenSharePage > 0) { + ///we need to move the user to the previous page + if (((screenShareCount - 1) == currentScreenSharePage) && + currentScreenSharePage > 0) { currentScreenSharePage--; } screenShareCount--; diff --git a/packages/hms_room_kit/lib/src/widgets/grid_layouts/screen_share_grid_layout.dart b/packages/hms_room_kit/lib/src/widgets/grid_layouts/screen_share_grid_layout.dart index 60840098f..74c7e4544 100644 --- a/packages/hms_room_kit/lib/src/widgets/grid_layouts/screen_share_grid_layout.dart +++ b/packages/hms_room_kit/lib/src/widgets/grid_layouts/screen_share_grid_layout.dart @@ -67,7 +67,9 @@ class _ScreenshareGridLayoutState extends State { if (widget.screenshareCount > 0) Expanded( child: PageView.builder( - physics: isFullScreen? const NeverScrollableScrollPhysics() :const PageScrollPhysics(), + physics: isFullScreen + ? const NeverScrollableScrollPhysics() + : const PageScrollPhysics(), allowImplicitScrolling: true, itemCount: widget.screenshareCount, onPageChanged: (newPage) { diff --git a/packages/hms_room_kit/lib/src/widgets/meeting_modes/custom_one_to_one_grid.dart b/packages/hms_room_kit/lib/src/widgets/meeting_modes/custom_one_to_one_grid.dart index 6712ba43d..274aaae69 100644 --- a/packages/hms_room_kit/lib/src/widgets/meeting_modes/custom_one_to_one_grid.dart +++ b/packages/hms_room_kit/lib/src/widgets/meeting_modes/custom_one_to_one_grid.dart @@ -54,7 +54,8 @@ class _CustomOneToOneGridState extends State { int pageCount = (numberOfPeers ~/ 6) + (numberOfPeers % 6 == 0 ? 0 : 1); - var screenshareStore = WhiteboardScreenshareStore(meetingStore: context.read()); + var screenshareStore = WhiteboardScreenshareStore( + meetingStore: context.read()); ///If the remote peer is sharing screen then we render the [ScreenshareGridLayout] with inset tile ///Else we render the normal layout with inset tile diff --git a/packages/hms_room_kit/lib/src/widgets/whiteboard_screenshare/screenshare_tile.dart b/packages/hms_room_kit/lib/src/widgets/whiteboard_screenshare/screenshare_tile.dart index 5c2d06a17..7ef3c0ddc 100644 --- a/packages/hms_room_kit/lib/src/widgets/whiteboard_screenshare/screenshare_tile.dart +++ b/packages/hms_room_kit/lib/src/widgets/whiteboard_screenshare/screenshare_tile.dart @@ -17,7 +17,6 @@ import 'package:hms_room_kit/src/widgets/whiteboard_screenshare/whiteboard_scree ///[ScreenshareTile] is a widget that is used to render the screenshare tile ///It is used to render the screenshare of the peer class ScreenshareTile extends StatelessWidget { - const ScreenshareTile({Key? key}) : super(key: key); @override