|
|
|
|
@ -352,43 +352,44 @@ class _CallScreenState extends State<CallScreen> {
|
|
|
|
|
ZoomVideoSdkUser? mySelf = await zoom.session.getMySelf();
|
|
|
|
|
if (data['status'] == RecordingStatus.Start) {
|
|
|
|
|
if (mySelf != null && !mySelf.isHost!) {
|
|
|
|
|
showDialog<String>(
|
|
|
|
|
context: context,
|
|
|
|
|
builder: (BuildContext context) => AlertDialog(
|
|
|
|
|
content: const Text('The session is being recorded.'),
|
|
|
|
|
actions: <Widget>[
|
|
|
|
|
TextButton(
|
|
|
|
|
onPressed: () async {
|
|
|
|
|
await zoom.acceptRecordingConsent();
|
|
|
|
|
if (context.mounted) {
|
|
|
|
|
Navigator.pop(context);
|
|
|
|
|
}
|
|
|
|
|
;
|
|
|
|
|
},
|
|
|
|
|
child: const Text('accept'),
|
|
|
|
|
),
|
|
|
|
|
TextButton(
|
|
|
|
|
onPressed: () async {
|
|
|
|
|
String currentConsentType = await zoom.getRecordingConsentType();
|
|
|
|
|
if (currentConsentType == ConsentType.ConsentType_Individual) {
|
|
|
|
|
await zoom.declineRecordingConsent();
|
|
|
|
|
Navigator.pop(context);
|
|
|
|
|
} else {
|
|
|
|
|
await zoom.declineRecordingConsent();
|
|
|
|
|
zoom.leaveSession(false);
|
|
|
|
|
if (!context.mounted) return;
|
|
|
|
|
Navigator.popAndPushNamed(
|
|
|
|
|
context,
|
|
|
|
|
"Join",
|
|
|
|
|
arguments: JoinArguments(args.isJoin, sessionName.value, sessionPassword.value, args.displayName, args.sessionIdleTimeoutMins, args.role),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
child: const Text('decline'),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
await zoom.acceptRecordingConsent();
|
|
|
|
|
// showDialog<String>(
|
|
|
|
|
// context: context,
|
|
|
|
|
// builder: (BuildContext context) => AlertDialog(
|
|
|
|
|
// content: const Text('The session is being recorded.'),
|
|
|
|
|
// actions: <Widget>[
|
|
|
|
|
// TextButton(
|
|
|
|
|
// onPressed: () async {
|
|
|
|
|
// await zoom.acceptRecordingConsent();
|
|
|
|
|
// if (context.mounted) {
|
|
|
|
|
// Navigator.pop(context);
|
|
|
|
|
// }
|
|
|
|
|
// ;
|
|
|
|
|
// },
|
|
|
|
|
// child: const Text('accept'),
|
|
|
|
|
// ),
|
|
|
|
|
// TextButton(
|
|
|
|
|
// onPressed: () async {
|
|
|
|
|
// String currentConsentType = await zoom.getRecordingConsentType();
|
|
|
|
|
// if (currentConsentType == ConsentType.ConsentType_Individual) {
|
|
|
|
|
// await zoom.declineRecordingConsent();
|
|
|
|
|
// Navigator.pop(context);
|
|
|
|
|
// } else {
|
|
|
|
|
// await zoom.declineRecordingConsent();
|
|
|
|
|
// zoom.leaveSession(false);
|
|
|
|
|
// if (!context.mounted) return;
|
|
|
|
|
// Navigator.popAndPushNamed(
|
|
|
|
|
// context,
|
|
|
|
|
// "Join",
|
|
|
|
|
// arguments: JoinArguments(args.isJoin, sessionName.value, sessionPassword.value, args.displayName, args.sessionIdleTimeoutMins, args.role),
|
|
|
|
|
// );
|
|
|
|
|
// }
|
|
|
|
|
// },
|
|
|
|
|
// child: const Text('decline'),
|
|
|
|
|
// ),
|
|
|
|
|
// ],
|
|
|
|
|
// ),
|
|
|
|
|
// );
|
|
|
|
|
}
|
|
|
|
|
isRecordingStarted.value = true;
|
|
|
|
|
} else {
|
|
|
|
|
@ -1745,11 +1746,11 @@ class _CallScreenState extends State<CallScreen> {
|
|
|
|
|
iconSize: circleButtonSize,
|
|
|
|
|
tooltip: isMuted.value == true ? "Unmute" : "Mute",
|
|
|
|
|
),
|
|
|
|
|
IconButton(
|
|
|
|
|
onPressed: onPressShare,
|
|
|
|
|
icon: isSharing.value ? Image.asset("assets/images/png/zoom/share-off@2x.png") : Image.asset("assets/images/png/zoom/share-on@2x.png"),
|
|
|
|
|
iconSize: circleButtonSize,
|
|
|
|
|
),
|
|
|
|
|
// IconButton(
|
|
|
|
|
// onPressed: onPressShare,
|
|
|
|
|
// icon: isSharing.value ? Image.asset("assets/images/png/zoom/share-off@2x.png") : Image.asset("assets/images/png/zoom/share-on@2x.png"),
|
|
|
|
|
// iconSize: circleButtonSize,
|
|
|
|
|
// ),
|
|
|
|
|
IconButton(
|
|
|
|
|
onPressed: onPressVideo,
|
|
|
|
|
iconSize: circleButtonSize,
|
|
|
|
|
@ -1771,35 +1772,35 @@ class _CallScreenState extends State<CallScreen> {
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
)),
|
|
|
|
|
Container(
|
|
|
|
|
margin: const EdgeInsets.only(left: 16, right: 16, bottom: 40, top: 10),
|
|
|
|
|
alignment: Alignment.bottomCenter,
|
|
|
|
|
child: SizedBox(
|
|
|
|
|
height: MediaQuery.of(context).viewInsets.bottom == 0 ? 65 : MediaQuery.of(context).viewInsets.bottom + 18,
|
|
|
|
|
child: TextField(
|
|
|
|
|
maxLines: 1,
|
|
|
|
|
textAlign: TextAlign.left,
|
|
|
|
|
style: TextStyle(color: chatTextColor),
|
|
|
|
|
cursorColor: chatTextColor,
|
|
|
|
|
textAlignVertical: TextAlignVertical.center,
|
|
|
|
|
controller: chatMessageController,
|
|
|
|
|
decoration: InputDecoration(
|
|
|
|
|
contentPadding: const EdgeInsets.only(left: 16, top: 10, bottom: 10, right: 16),
|
|
|
|
|
enabledBorder: OutlineInputBorder(
|
|
|
|
|
borderSide: BorderSide(width: 1, color: chatTextColor), //<-- SEE HERE
|
|
|
|
|
),
|
|
|
|
|
hintText: 'Type your message here...',
|
|
|
|
|
hintStyle: TextStyle(
|
|
|
|
|
fontSize: 14.0,
|
|
|
|
|
color: chatTextColor,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
onSubmitted: (String str) {
|
|
|
|
|
sendChatMessage(str);
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
// Container(
|
|
|
|
|
// margin: const EdgeInsets.only(left: 16, right: 16, bottom: 40, top: 10),
|
|
|
|
|
// alignment: Alignment.bottomCenter,
|
|
|
|
|
// child: SizedBox(
|
|
|
|
|
// height: MediaQuery.of(context).viewInsets.bottom == 0 ? 65 : MediaQuery.of(context).viewInsets.bottom + 18,
|
|
|
|
|
// child: TextField(
|
|
|
|
|
// maxLines: 1,
|
|
|
|
|
// textAlign: TextAlign.left,
|
|
|
|
|
// style: TextStyle(color: chatTextColor),
|
|
|
|
|
// cursorColor: chatTextColor,
|
|
|
|
|
// textAlignVertical: TextAlignVertical.center,
|
|
|
|
|
// controller: chatMessageController,
|
|
|
|
|
// decoration: InputDecoration(
|
|
|
|
|
// contentPadding: const EdgeInsets.only(left: 16, top: 10, bottom: 10, right: 16),
|
|
|
|
|
// enabledBorder: OutlineInputBorder(
|
|
|
|
|
// borderSide: BorderSide(width: 1, color: chatTextColor), //<-- SEE HERE
|
|
|
|
|
// ),
|
|
|
|
|
// hintText: 'Type your message here...',
|
|
|
|
|
// hintStyle: TextStyle(
|
|
|
|
|
// fontSize: 14.0,
|
|
|
|
|
// color: chatTextColor,
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// onSubmitted: (String str) {
|
|
|
|
|
// sendChatMessage(str);
|
|
|
|
|
// },
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
Container(
|
|
|
|
|
alignment: Alignment.bottomLeft,
|
|
|
|
|
margin: const EdgeInsets.only(bottom: 120),
|
|
|
|
|
|