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 May 24, 2024
1 parent a32e138 commit e958af3
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 46 deletions.
51 changes: 26 additions & 25 deletions packages/hms_room_kit/lib/src/hls_viewer/hls_hand_raise_menu.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,32 +21,33 @@ class HLSHandRaiseMenu extends StatelessWidget {
return Row(
mainAxisAlignment: MainAxisAlignment.end,
children: [
if(HMSRoomLayout.isHandRaiseEnabled)
Selector<MeetingStore, bool>(
selector: (_, meetingStore) => meetingStore.isRaisedHand,
builder: (_, isRaisedHand, __) {
return HMSEmbeddedButton(
onTap: () => {
context.read<MeetingStore>().toggleLocalPeerHandRaise(),
},
enabledBorderColor: HMSThemeColors.surfaceBrighter,
offColor: HMSThemeColors.surfaceDefault,
disabledBorderColor: HMSThemeColors.surfaceDefault,
onColor: HMSThemeColors.surfaceBrighter,
isActive: isRaisedHand,
child: Padding(
padding: const EdgeInsets.all(8.0),
child: SvgPicture.asset(
isRaisedHand
? "packages/hms_room_kit/lib/src/assets/icons/hand_off.svg"
: "packages/hms_room_kit/lib/src/assets/icons/hand_outline.svg",
colorFilter: ColorFilter.mode(
HMSThemeColors.onSurfaceHighEmphasis, BlendMode.srcIn),
semanticsLabel: "hand_raise_button",
if (HMSRoomLayout.isHandRaiseEnabled)
Selector<MeetingStore, bool>(
selector: (_, meetingStore) => meetingStore.isRaisedHand,
builder: (_, isRaisedHand, __) {
return HMSEmbeddedButton(
onTap: () => {
context.read<MeetingStore>().toggleLocalPeerHandRaise(),
},
enabledBorderColor: HMSThemeColors.surfaceBrighter,
offColor: HMSThemeColors.surfaceDefault,
disabledBorderColor: HMSThemeColors.surfaceDefault,
onColor: HMSThemeColors.surfaceBrighter,
isActive: isRaisedHand,
child: Padding(
padding: const EdgeInsets.all(8.0),
child: SvgPicture.asset(
isRaisedHand
? "packages/hms_room_kit/lib/src/assets/icons/hand_off.svg"
: "packages/hms_room_kit/lib/src/assets/icons/hand_outline.svg",
colorFilter: ColorFilter.mode(
HMSThemeColors.onSurfaceHighEmphasis,
BlendMode.srcIn),
semanticsLabel: "hand_raise_button",
),
),
),
);
}),
);
}),
const SizedBox(
width: 8,
),
Expand Down
6 changes: 3 additions & 3 deletions packages/hms_room_kit/lib/src/layout_api/hms_room_layout.dart
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,9 @@ class HMSRoomLayout {
isBRBEnabled =
roleLayoutData?.screens?.conferencing?.defaultConf?.elements?.brb !=
null;
isHandRaiseEnabled =
roleLayoutData?.screens?.conferencing?.defaultConf?.elements?.handRaise !=
null;
isHandRaiseEnabled = roleLayoutData
?.screens?.conferencing?.defaultConf?.elements?.handRaise !=
null;
offStageRoles = roleLayoutData?.screens?.conferencing?.defaultConf
?.elements?.onStageExp?.offStageRoles;
skipPreviewForRole = roleLayoutData?.screens?.conferencing?.defaultConf
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,24 +213,24 @@ class _AppUtilitiesBottomSheetState extends State<AppUtilitiesBottomSheet> {
meetingStore.isBRB ? "I'm Back" : "Be Right Back"),

///This renders the raise hand option
if(HMSRoomLayout.isHandRaiseEnabled)
MoreOptionItem(
onTap: () async {
context.read<MeetingStore>().toggleLocalPeerHandRaise();
Navigator.pop(context);
},
isActive: meetingStore.isRaisedHand,
optionIcon: SvgPicture.asset(
"packages/hms_room_kit/lib/src/assets/icons/hand_outline.svg",
height: 20,
width: 20,
colorFilter: ColorFilter.mode(
HMSThemeColors.onSurfaceHighEmphasis,
BlendMode.srcIn),
),
optionText: meetingStore.isRaisedHand
? "Lower Hand"
: "Raise Hand"),
if (HMSRoomLayout.isHandRaiseEnabled)
MoreOptionItem(
onTap: () async {
context.read<MeetingStore>().toggleLocalPeerHandRaise();
Navigator.pop(context);
},
isActive: meetingStore.isRaisedHand,
optionIcon: SvgPicture.asset(
"packages/hms_room_kit/lib/src/assets/icons/hand_outline.svg",
height: 20,
width: 20,
colorFilter: ColorFilter.mode(
HMSThemeColors.onSurfaceHighEmphasis,
BlendMode.srcIn),
),
optionText: meetingStore.isRaisedHand
? "Lower Hand"
: "Raise Hand"),

///This renders the polls and quizzes option
if ((meetingStore.localPeer?.role.permissions.pollRead ??
Expand Down

0 comments on commit e958af3

Please sign in to comment.