|
|
|
|
@ -95,34 +95,34 @@ class _ChatDetailScreenState extends State<ChatDetailScreen> {
|
|
|
|
|
showHomeButton: false,
|
|
|
|
|
showTyping: true,
|
|
|
|
|
chatUser: params!.chatUser,
|
|
|
|
|
actions: [
|
|
|
|
|
// if (Platform.isAndroid)
|
|
|
|
|
SvgPicture.asset("assets/icons/chat/call.svg", width: 21, height: 23).onPress(() async {
|
|
|
|
|
Future<PermissionStatus> micPer = Permission.microphone.request();
|
|
|
|
|
if (await micPer.isGranted) {
|
|
|
|
|
makeCall(callType: "AUDIO");
|
|
|
|
|
} else {
|
|
|
|
|
Permission.microphone.request().isGranted.then((value) {
|
|
|
|
|
makeCall(callType: "AUDIO");
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}),
|
|
|
|
|
// if (Platform.isAndroid)
|
|
|
|
|
24.width,
|
|
|
|
|
// if (Platform.isAndroid)
|
|
|
|
|
SvgPicture.asset("assets/icons/chat/video_call.svg", width: 21, height: 18).onPress(() async {
|
|
|
|
|
Future<PermissionStatus> camPer = Permission.camera.request();
|
|
|
|
|
if (await camPer.isGranted) {
|
|
|
|
|
makeCall(callType: "VIDEO");
|
|
|
|
|
} else {
|
|
|
|
|
Permission.camera.request().isGranted.then((value) {
|
|
|
|
|
makeCall(callType: "VIDEO");
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}),
|
|
|
|
|
// if (Platform.isAndroid)
|
|
|
|
|
21.width,
|
|
|
|
|
],
|
|
|
|
|
// actions: [
|
|
|
|
|
// // if (Platform.isAndroid)
|
|
|
|
|
// SvgPicture.asset("assets/icons/chat/call.svg", width: 21, height: 23).onPress(() async {
|
|
|
|
|
// Future<PermissionStatus> micPer = Permission.microphone.request();
|
|
|
|
|
// if (await micPer.isGranted) {
|
|
|
|
|
// makeCall(callType: "AUDIO");
|
|
|
|
|
// } else {
|
|
|
|
|
// Permission.microphone.request().isGranted.then((value) {
|
|
|
|
|
// makeCall(callType: "AUDIO");
|
|
|
|
|
// });
|
|
|
|
|
// }
|
|
|
|
|
// }),
|
|
|
|
|
// // if (Platform.isAndroid)
|
|
|
|
|
// 24.width,
|
|
|
|
|
// // if (Platform.isAndroid)
|
|
|
|
|
// SvgPicture.asset("assets/icons/chat/video_call.svg", width: 21, height: 18).onPress(() async {
|
|
|
|
|
// Future<PermissionStatus> camPer = Permission.camera.request();
|
|
|
|
|
// if (await camPer.isGranted) {
|
|
|
|
|
// makeCall(callType: "VIDEO");
|
|
|
|
|
// } else {
|
|
|
|
|
// Permission.camera.request().isGranted.then((value) {
|
|
|
|
|
// makeCall(callType: "VIDEO");
|
|
|
|
|
// });
|
|
|
|
|
// }
|
|
|
|
|
// }),
|
|
|
|
|
// // if (Platform.isAndroid)
|
|
|
|
|
// 21.width,
|
|
|
|
|
// ],
|
|
|
|
|
),
|
|
|
|
|
body: SafeArea(
|
|
|
|
|
child: Consumer<ChatProviderModel>(
|
|
|
|
|
|