Skip to content

Commit

Permalink
Fixed icon issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Decoder07 committed Jun 27, 2024
1 parent f43db56 commit 6b66724
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -488,14 +488,10 @@ class _AppUtilitiesBottomSheetState extends State<AppUtilitiesBottomSheet> {
: meetingStore.toggleTranscriptionDisplay();
},

///Here we check if the local peer has the permission to enable/disable
///transcription if yes we use the isTranscriptionEnabled flag
///else we use the isTranscriptionDisplayed flag
isActive: getTranscriptionPermission(meetingStore)
? meetingStore.isTranscriptionEnabled
: meetingStore.isTranscriptionDisplayed,
///The button is active if the transcription is enabled and getting displayed
isActive: meetingStore.isTranscriptionDisplayed,
optionIcon: SvgPicture.asset(
"packages/hms_room_kit/lib/src/assets/icons/${(getTranscriptionPermission(meetingStore) ? meetingStore.isTranscriptionEnabled : meetingStore.isTranscriptionDisplayed) ? "cc-filled" : "cc"}.svg",
"packages/hms_room_kit/lib/src/assets/icons/${meetingStore.isTranscriptionDisplayed ? "cc-filled" : "cc"}.svg",
height: 20,
width: 20,
colorFilter: ColorFilter.mode(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,9 @@ public class SwiftHmssdkFlutterPlugin: NSObject, FlutterPlugin, HMSUpdateListene

guard let tempArg = arguments as? [AnyHashable: Any],
let name = tempArg["name"] as? String else {
print("Error occured")
return FlutterError(code: #function, message: "invalid event sink name", details: arguments)
}

print(name)
switch name {
case "meeting":
eventSink = events
Expand Down

0 comments on commit 6b66724

Please sign in to comment.