Skip to content

Commit

Permalink
🤖 Automated Format and Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Decoder07 authored and github-actions[bot] committed Jun 6, 2024
1 parent 1b3c3ed commit 372e293
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
6 changes: 3 additions & 3 deletions packages/hms_room_kit/lib/src/meeting/meeting_store.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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--;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ class _ScreenshareGridLayoutState extends State<ScreenshareGridLayout> {
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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ class _CustomOneToOneGridState extends State<CustomOneToOneGrid> {
int pageCount =
(numberOfPeers ~/ 6) + (numberOfPeers % 6 == 0 ? 0 : 1);

var screenshareStore = WhiteboardScreenshareStore(meetingStore: context.read<MeetingStore>());
var screenshareStore = WhiteboardScreenshareStore(
meetingStore: context.read<MeetingStore>());

///If the remote peer is sharing screen then we render the [ScreenshareGridLayout] with inset tile
///Else we render the normal layout with inset tile
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 372e293

Please sign in to comment.