king_kahild_app
haroon amjad 2 months ago
parent 5c98b40803
commit e31cfb803c

Binary file not shown.

After

Width:  |  Height:  |  Size: 286 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 290 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 217 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 246 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 194 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

After

Width:  |  Height:  |  Size: 71 KiB

@ -184,7 +184,7 @@ class BaseAppClient {
// body['IdentificationNo'] = 1023854217;
// body['MobileNo'] = "531940021"; //0560717232
// body['PatientID'] = 283093; //4609100
// body['PatientID'] = 1071; //4609100
// body['TokenID'] = "@dm!n";
// Patient ID: 3027574

File diff suppressed because it is too large Load Diff

@ -1,40 +1,40 @@
import 'dart:math';
import 'package:dart_jsonwebtoken/dart_jsonwebtoken.dart';
import 'package:diplomaticquarterapp/pages/conference/zoom/zoom_config.dart';
String makeId(int length) {
String result = "";
String characters =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
int charactersLength = characters.length;
for (var i = 0; i < length; i++) {
result += characters[Random().nextInt(charactersLength)];
}
return result;
}
String generateJwt(String sessionName, String roleType) {
try {
var iat = DateTime.now();
var exp = DateTime.now().add(Duration(days: 2));
final jwt = JWT(
{
'app_key': configs["ZOOM_SDK_KEY"],
'version': 1,
'user_identity': makeId(10),
'iat': (iat.millisecondsSinceEpoch / 1000).round(),
'exp': (exp.millisecondsSinceEpoch / 1000).round(),
'tpc': sessionName,
'role_type': int.parse(roleType),
'cloud_recording_option': 1,
'cloud_recording_election': 1,
},
);
var token = jwt.sign(SecretKey(configs["ZOOM_SDK_SECRET"]));
return token;
} catch (e) {
print(e);
return '';
}
}
// import 'dart:math';
//
// import 'package:dart_jsonwebtoken/dart_jsonwebtoken.dart';
// import 'package:diplomaticquarterapp/pages/conference/zoom/zoom_config.dart';
//
// String makeId(int length) {
// String result = "";
// String characters =
// "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
// int charactersLength = characters.length;
// for (var i = 0; i < length; i++) {
// result += characters[Random().nextInt(charactersLength)];
// }
// return result;
// }
//
// String generateJwt(String sessionName, String roleType) {
// try {
// var iat = DateTime.now();
// var exp = DateTime.now().add(Duration(days: 2));
// final jwt = JWT(
// {
// 'app_key': configs["ZOOM_SDK_KEY"],
// 'version': 1,
// 'user_identity': makeId(10),
// 'iat': (iat.millisecondsSinceEpoch / 1000).round(),
// 'exp': (exp.millisecondsSinceEpoch / 1000).round(),
// 'tpc': sessionName,
// 'role_type': int.parse(roleType),
// 'cloud_recording_option': 1,
// 'cloud_recording_election': 1,
// },
// );
// var token = jwt.sign(SecretKey(configs["ZOOM_SDK_SECRET"]));
// return token;
// } catch (e) {
// print(e);
// return '';
// }
// }

@ -1,258 +1,258 @@
import 'dart:async';
import 'package:flutter/material.dart';
import 'package:flutter_hooks/flutter_hooks.dart';
import 'package:flutter_zoom_videosdk/flutter_zoom_view.dart' as FlutterZoomView;
import 'package:flutter_zoom_videosdk/native/zoom_videosdk.dart';
const SHOW_TALKING_ICON_DURATION = 2000;
class VideoView extends FlutterZoomView.ZoomView {
const VideoView({
super.key,
required super.user,
required super.sharing,
required super.preview,
required super.focused,
required super.hasMultiCamera,
required super.multiCameraIndex,
required super.videoAspect,
required super.fullScreen,
required super.resolution,
required super.isPiPView,
});
@override
Widget build(BuildContext context) {
var isVideoOn = useState(false);
var isTalking = useState(false);
var isMuted = useState(false);
var isMounted = useIsMounted();
var zoom = ZoomVideoSdk();
var isSharing = useState(false);
user?.audioStatus?.isMuted().then((muted) => isMuted.value = muted);
useEffect(() {
updateVideoStatus() {
if (user == null) return;
Future<void>.microtask(() async {
if (isMounted()) {
isVideoOn.value = (await user!.videoStatus!.isOn());
isSharing.value = sharing;
}
});
}
resetAudioStatus() {
isTalking.value = false;
isMuted.value = false;
}
updateAudioStatus() async {
if (!isMounted()) return;
var talking = await user?.audioStatus?.isTalking();
var muted = await user?.audioStatus?.isMuted();
isMuted.value = muted!;
isTalking.value = talking!;
if (talking) {
Timer(
const Duration(milliseconds: SHOW_TALKING_ICON_DURATION),
() => {
if (isMounted())
{
isTalking.value = false,
}
});
}
}
updateVideoStatus();
return null;
}, [zoom, user]);
ImageIcon audioStatusIcon;
if (isTalking.value) {
audioStatusIcon = const ImageIcon(
AssetImage("assets/images/new/zoom/talking@2x.png"),
);
} else if (isMuted.value) {
audioStatusIcon = const ImageIcon(
AssetImage("assets/images/new/zoom/muted@2x.png"),
);
}
// Pass parameters to the platform side.
final Map<String, dynamic> creationParams = <String, dynamic>{};
creationParams.putIfAbsent("userId", () => user?.userId);
creationParams.putIfAbsent("sharing", () => sharing);
creationParams.putIfAbsent("preview", () => preview);
creationParams.putIfAbsent("focused", () => focused);
creationParams.putIfAbsent("hasMultiCamera", () => hasMultiCamera);
if (videoAspect.isEmpty) {
creationParams.putIfAbsent("videoAspect", () => VideoAspect.PanAndScan);
} else {
creationParams.putIfAbsent("videoAspect", () => videoAspect);
}
creationParams.putIfAbsent("fullScreen", () => fullScreen);
if (resolution.isNotEmpty) {
creationParams.putIfAbsent("videoAspect", () => videoAspect);
}
if (fullScreen) {
if (sharing) {
return Container(
height: MediaQuery.of(context).size.height,
width: MediaQuery.of(context).size.width,
alignment: Alignment.center,
child: FlutterZoomView.View(creationParams: creationParams),
);
} else if (isVideoOn.value) {
return Container(
height: MediaQuery.of(context).size.height,
width: MediaQuery.of(context).size.width,
alignment: Alignment.center,
child: FlutterZoomView.View(creationParams: creationParams),
);
} else {
return Container(
margin: const EdgeInsets.symmetric(vertical: 0),
child: Container(
alignment: Alignment.center,
child: const Image(
image: AssetImage("assets/images/new/zoom/default-avatar.png"),
)),
);
}
} else {
if (isVideoOn.value || sharing) {
return Container(
padding: const EdgeInsets.symmetric(horizontal: 8),
height: 110,
width: 110,
child: Stack(
children: [
Container(
height: 110,
width: 110,
decoration: BoxDecoration(
color: const Color(0xff232323),
border: Border.all(
color: const Color(0xff666666),
width: 1,
),
borderRadius: const BorderRadius.all(Radius.circular(8)),
),
alignment: Alignment.center,
child: FlutterZoomView.View(creationParams: creationParams),
),
Container(
height: 110,
width: 110,
decoration: const BoxDecoration(
borderRadius: BorderRadius.all(Radius.circular(8)),
),
),
Container(
alignment: Alignment.bottomCenter,
child: Container(
height: 20,
width: 110,
decoration: const BoxDecoration(
color: Colors.black26,
borderRadius: BorderRadius.all(Radius.circular(8)),
),
),
),
Container(
alignment: Alignment.bottomLeft,
margin: const EdgeInsets.only(left: 5),
child: Text(
user!.userName,
textAlign: TextAlign.left,
style: const TextStyle(
color: Colors.white,
fontSize: 12,
),
),
),
Container(
alignment: Alignment.bottomRight,
margin: const EdgeInsets.only(right: 5, bottom: 5),
// height: 110,
// width: 110,
child: Image(
height: 12,
width: 12,
image: isMuted.value ? const AssetImage("assets/images/new/zoom/muted@2x.png") : const AssetImage("assets/images/new/zoom/talking@2x.png"),
fit: BoxFit.cover,
),
)
],
),
);
} else {
return Container(
padding: const EdgeInsets.symmetric(horizontal: 8),
height: 110,
width: 110,
child: Stack(
children: [
Container(
height: 110,
width: 110,
decoration: BoxDecoration(
color: const Color(0xff232323),
border: Border.all(
color: const Color(0xff666666),
width: 1,
),
borderRadius: const BorderRadius.all(Radius.circular(8)),
),
alignment: Alignment.center,
child: Container(
alignment: Alignment.center,
child: const Image(
height: 60,
width: 60,
image: AssetImage("assets/images/new/zoom/default-avatar.png"),
)),
),
Align(
alignment: Alignment.bottomCenter,
child: Container(
height: 20,
width: 110,
decoration: const BoxDecoration(
color: Colors.black26,
borderRadius: BorderRadius.all(Radius.circular(8)),
),
),
),
Container(
alignment: Alignment.bottomLeft,
margin: const EdgeInsets.only(left: 5),
child: Text(
user!.userName,
textAlign: TextAlign.left,
style: const TextStyle(
color: Colors.white,
fontSize: 12,
),
),
),
Container(
alignment: Alignment.bottomRight,
margin: const EdgeInsets.only(right: 5, bottom: 5),
child: Image(
height: 12,
width: 12,
image: isMuted.value ? const AssetImage("assets/images/new/zoom/muted@2x.png") : const AssetImage("assets/images/new/zoom/talking@2x.png"),
fit: BoxFit.cover,
),
),
],
),
);
}
}
}
}
// import 'dart:async';
//
// import 'package:flutter/material.dart';
// import 'package:flutter_hooks/flutter_hooks.dart';
// import 'package:flutter_zoom_videosdk/flutter_zoom_view.dart' as FlutterZoomView;
// import 'package:flutter_zoom_videosdk/native/zoom_videosdk.dart';
//
// const SHOW_TALKING_ICON_DURATION = 2000;
//
// class VideoView extends FlutterZoomView.ZoomView {
// const VideoView({
// super.key,
// required super.user,
// required super.sharing,
// required super.preview,
// required super.focused,
// required super.hasMultiCamera,
// required super.multiCameraIndex,
// required super.videoAspect,
// required super.fullScreen,
// required super.resolution,
// required super.isPiPView,
// });
//
// @override
// Widget build(BuildContext context) {
// var isVideoOn = useState(false);
// var isTalking = useState(false);
// var isMuted = useState(false);
// var isMounted = useIsMounted();
// var zoom = ZoomVideoSdk();
// var isSharing = useState(false);
// user?.audioStatus?.isMuted().then((muted) => isMuted.value = muted);
//
// useEffect(() {
// updateVideoStatus() {
// if (user == null) return;
// Future<void>.microtask(() async {
// if (isMounted()) {
// isVideoOn.value = (await user!.videoStatus!.isOn());
// isSharing.value = sharing;
// }
// });
// }
//
// resetAudioStatus() {
// isTalking.value = false;
// isMuted.value = false;
// }
//
// updateAudioStatus() async {
// if (!isMounted()) return;
// var talking = await user?.audioStatus?.isTalking();
// var muted = await user?.audioStatus?.isMuted();
// isMuted.value = muted!;
// isTalking.value = talking!;
// if (talking) {
// Timer(
// const Duration(milliseconds: SHOW_TALKING_ICON_DURATION),
// () => {
// if (isMounted())
// {
// isTalking.value = false,
// }
// });
// }
// }
//
// updateVideoStatus();
// return null;
// }, [zoom, user]);
//
// ImageIcon audioStatusIcon;
// if (isTalking.value) {
// audioStatusIcon = const ImageIcon(
// AssetImage("assets/images/new/zoom/talking@2x.png"),
// );
// } else if (isMuted.value) {
// audioStatusIcon = const ImageIcon(
// AssetImage("assets/images/new/zoom/muted@2x.png"),
// );
// }
// // Pass parameters to the platform side.
// final Map<String, dynamic> creationParams = <String, dynamic>{};
// creationParams.putIfAbsent("userId", () => user?.userId);
// creationParams.putIfAbsent("sharing", () => sharing);
// creationParams.putIfAbsent("preview", () => preview);
// creationParams.putIfAbsent("focused", () => focused);
// creationParams.putIfAbsent("hasMultiCamera", () => hasMultiCamera);
// if (videoAspect.isEmpty) {
// creationParams.putIfAbsent("videoAspect", () => VideoAspect.PanAndScan);
// } else {
// creationParams.putIfAbsent("videoAspect", () => videoAspect);
// }
// creationParams.putIfAbsent("fullScreen", () => fullScreen);
// if (resolution.isNotEmpty) {
// creationParams.putIfAbsent("videoAspect", () => videoAspect);
// }
//
// if (fullScreen) {
// if (sharing) {
// return Container(
// height: MediaQuery.of(context).size.height,
// width: MediaQuery.of(context).size.width,
// alignment: Alignment.center,
// child: FlutterZoomView.View(creationParams: creationParams),
// );
// } else if (isVideoOn.value) {
// return Container(
// height: MediaQuery.of(context).size.height,
// width: MediaQuery.of(context).size.width,
// alignment: Alignment.center,
// child: FlutterZoomView.View(creationParams: creationParams),
// );
// } else {
// return Container(
// margin: const EdgeInsets.symmetric(vertical: 0),
// child: Container(
// alignment: Alignment.center,
// child: const Image(
// image: AssetImage("assets/images/new/zoom/default-avatar.png"),
// )),
// );
// }
// } else {
// if (isVideoOn.value || sharing) {
// return Container(
// padding: const EdgeInsets.symmetric(horizontal: 8),
// height: 110,
// width: 110,
// child: Stack(
// children: [
// Container(
// height: 110,
// width: 110,
// decoration: BoxDecoration(
// color: const Color(0xff232323),
// border: Border.all(
// color: const Color(0xff666666),
// width: 1,
// ),
// borderRadius: const BorderRadius.all(Radius.circular(8)),
// ),
// alignment: Alignment.center,
// child: FlutterZoomView.View(creationParams: creationParams),
// ),
// Container(
// height: 110,
// width: 110,
// decoration: const BoxDecoration(
// borderRadius: BorderRadius.all(Radius.circular(8)),
// ),
// ),
// Container(
// alignment: Alignment.bottomCenter,
// child: Container(
// height: 20,
// width: 110,
// decoration: const BoxDecoration(
// color: Colors.black26,
// borderRadius: BorderRadius.all(Radius.circular(8)),
// ),
// ),
// ),
// Container(
// alignment: Alignment.bottomLeft,
// margin: const EdgeInsets.only(left: 5),
// child: Text(
// user!.userName,
// textAlign: TextAlign.left,
// style: const TextStyle(
// color: Colors.white,
// fontSize: 12,
// ),
// ),
// ),
// Container(
// alignment: Alignment.bottomRight,
// margin: const EdgeInsets.only(right: 5, bottom: 5),
// // height: 110,
// // width: 110,
// child: Image(
// height: 12,
// width: 12,
// image: isMuted.value ? const AssetImage("assets/images/new/zoom/muted@2x.png") : const AssetImage("assets/images/new/zoom/talking@2x.png"),
// fit: BoxFit.cover,
// ),
// )
// ],
// ),
// );
// } else {
// return Container(
// padding: const EdgeInsets.symmetric(horizontal: 8),
// height: 110,
// width: 110,
// child: Stack(
// children: [
// Container(
// height: 110,
// width: 110,
// decoration: BoxDecoration(
// color: const Color(0xff232323),
// border: Border.all(
// color: const Color(0xff666666),
// width: 1,
// ),
// borderRadius: const BorderRadius.all(Radius.circular(8)),
// ),
// alignment: Alignment.center,
// child: Container(
// alignment: Alignment.center,
// child: const Image(
// height: 60,
// width: 60,
// image: AssetImage("assets/images/new/zoom/default-avatar.png"),
// )),
// ),
// Align(
// alignment: Alignment.bottomCenter,
// child: Container(
// height: 20,
// width: 110,
// decoration: const BoxDecoration(
// color: Colors.black26,
// borderRadius: BorderRadius.all(Radius.circular(8)),
// ),
// ),
// ),
// Container(
// alignment: Alignment.bottomLeft,
// margin: const EdgeInsets.only(left: 5),
// child: Text(
// user!.userName,
// textAlign: TextAlign.left,
// style: const TextStyle(
// color: Colors.white,
// fontSize: 12,
// ),
// ),
// ),
// Container(
// alignment: Alignment.bottomRight,
// margin: const EdgeInsets.only(right: 5, bottom: 5),
// child: Image(
// height: 12,
// width: 12,
// image: isMuted.value ? const AssetImage("assets/images/new/zoom/muted@2x.png") : const AssetImage("assets/images/new/zoom/talking@2x.png"),
// fit: BoxFit.cover,
// ),
// ),
// ],
// ),
// );
// }
// }
// }
// }

@ -47,7 +47,7 @@ import 'package:flutter/material.dart';
import 'package:flutter_app_icon_badge/flutter_app_icon_badge.dart';
import 'package:flutter_local_notifications/flutter_local_notifications.dart';
import 'package:flutter_svg/flutter_svg.dart';
import 'package:flutter_zoom_videosdk/native/zoom_videosdk.dart';
// import 'package:flutter_zoom_videosdk/native/zoom_videosdk.dart';
import 'package:permission_handler/permission_handler.dart';
import 'package:provider/provider.dart';
@ -347,12 +347,12 @@ class _LandingPageState extends State<LandingPage> with WidgetsBindingObserver {
// HMG_Geofencing(context).loadZones().then((instance) => instance.init());
}
void startZoom(){
var zoom = ZoomVideoSdk();
InitConfig initConfig = InitConfig(
domain: "zoom.us",
enableLog: true,
);
zoom.initSdk(initConfig);
// var zoom = ZoomVideoSdk();
// InitConfig initConfig = InitConfig(
// domain: "zoom.us",
// enableLog: true,
// );
// zoom.initSdk(initConfig);
}
void setUserValues(value) async {

@ -220,11 +220,11 @@ class _IncomingCallState extends State<IncomingCall> with SingleTickerProviderSt
if (widget.incomingCallData!.background == "0") {
// Zoom Call Page
// Navigator.of(context).pop();
Navigator.pushReplacementNamed(
context,
"zoom_call_page",
arguments: CallArguments(widget.incomingCallData!.sessionId!, "123", "Patient", "40", "0", false),
);
// Navigator.pushReplacementNamed(
// context,
// "zoom_call_page",
// arguments: CallArguments(widget.incomingCallData!.sessionId!, "123", "Patient", "40", "0", false),
// );
} else {
// OpenTok Call Page
await Navigator.of(context).pushReplacement(

@ -11,7 +11,7 @@ import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
import 'package:diplomaticquarterapp/uitl/utils.dart';
import 'package:diplomaticquarterapp/widgets/buttons/defaultButton.dart';
import 'package:flutter/material.dart';
import 'package:health/health.dart';
// import 'package:health/health.dart';
class syncHealthDataButton extends StatefulWidget {
syncHealthDataButton();
@ -21,7 +21,7 @@ class syncHealthDataButton extends StatefulWidget {
}
class _syncHealthDataButtonState extends State<syncHealthDataButton> {
List<HealthDataPoint> _healthDataList = [];
// List<HealthDataPoint> _healthDataList = [];
List<healthData> Med_InsertTransactionsInputsList = [];
List<healthData> Med_InsertTransactionsInputsList2 = [];
@ -34,8 +34,8 @@ class _syncHealthDataButtonState extends State<syncHealthDataButton> {
int MedCategoryID = 0;
HealthFactory health = HealthFactory();
List<HealthDataType> types = [HealthDataType.STEPS, HealthDataType.HEART_RATE, Platform.isAndroid ? HealthDataType.DISTANCE_DELTA : HealthDataType.DISTANCE_WALKING_RUNNING];
// HealthFactory health = HealthFactory();
// List<HealthDataType> types = [HealthDataType.STEPS, HealthDataType.HEART_RATE, Platform.isAndroid ? HealthDataType.DISTANCE_DELTA : HealthDataType.DISTANCE_WALKING_RUNNING];
@override
void initState() {
@ -50,26 +50,26 @@ class _syncHealthDataButtonState extends State<syncHealthDataButton> {
checkPermissions() async {
if (Platform.isAndroid) {
if (await PermissionService.isHealthDataPermissionEnabled()) {
await health.requestAuthorization(types).then((value) {
if (value) {
readAll();
}
});
// await health.requestAuthorization(types).then((value) {
// if (value) {
// readAll();
// }
// });
} else {
Utils.showPermissionConsentDialog(context, TranslationBase.of(context).physicalActivityPermission, () async {
await health.requestAuthorization(types).then((value) {
if (value) {
readAll();
}
});
// await health.requestAuthorization(types).then((value) {
// if (value) {
// readAll();
// }
// });
});
}
} else {
await health.requestAuthorization(types).then((value) {
if (value) {
readAll();
}
});
// await health.requestAuthorization(types).then((value) {
// if (value) {
// readAll();
// }
// });
}
}
@ -82,41 +82,41 @@ class _syncHealthDataButtonState extends State<syncHealthDataButton> {
Med_InsertTransactionsInputsList.clear();
DateTime startDate = DateTime.now().subtract(new Duration(days: 30));
try {
List<HealthDataPoint> healthData = await health.getHealthDataFromTypes(startDate, DateTime.now(), types);
_healthDataList.addAll(healthData);
} catch (e) {
print("Caught exception in getHealthDataFromTypes: $e");
}
_healthDataList = HealthFactory.removeDuplicates(_healthDataList);
_healthDataList.forEach((x) {
if (x.type == HealthDataType.STEPS) {
Med_InsertTransactionsInputsList.add(healthData(
MedCategoryID: 6,
MedSubCategoryID: MedSubCategoryID,
MachineDate: DateUtil.convertDateToString(x.dateFrom),
Value: double.tryParse(x.value.toString()),
TransactionsListID: TransactionsListID++));
}
if (x.type == HealthDataType.HEART_RATE) {
Med_InsertTransactionsInputsList.add(healthData(
MedCategoryID: 3,
MedSubCategoryID: MedSubCategoryID,
MachineDate: DateUtil.convertDateToString(x.dateFrom),
Value: double.tryParse(x.value.toString()),
TransactionsListID: TransactionsListID++));
}
if (x.type == HealthDataType.DISTANCE_DELTA || x.type == HealthDataType.DISTANCE_WALKING_RUNNING) {
Med_InsertTransactionsInputsList.add(healthData(
MedCategoryID: 7,
MedSubCategoryID: MedSubCategoryID,
MachineDate: DateUtil.convertDateToString(x.dateFrom),
Value: double.tryParse(x.value.toString()),
TransactionsListID: TransactionsListID++));
}
});
// try {
// List<HealthDataPoint> healthData = await health.getHealthDataFromTypes(startDate, DateTime.now(), types);
// _healthDataList.addAll(healthData);
// } catch (e) {
// print("Caught exception in getHealthDataFromTypes: $e");
// }
// _healthDataList = HealthFactory.removeDuplicates(_healthDataList);
// _healthDataList.forEach((x) {
// if (x.type == HealthDataType.STEPS) {
// Med_InsertTransactionsInputsList.add(healthData(
// MedCategoryID: 6,
// MedSubCategoryID: MedSubCategoryID,
// MachineDate: DateUtil.convertDateToString(x.dateFrom),
// Value: double.tryParse(x.value.toString()),
// TransactionsListID: TransactionsListID++));
// }
// if (x.type == HealthDataType.HEART_RATE) {
// Med_InsertTransactionsInputsList.add(healthData(
// MedCategoryID: 3,
// MedSubCategoryID: MedSubCategoryID,
// MachineDate: DateUtil.convertDateToString(x.dateFrom),
// Value: double.tryParse(x.value.toString()),
// TransactionsListID: TransactionsListID++));
// }
// if (x.type == HealthDataType.DISTANCE_DELTA || x.type == HealthDataType.DISTANCE_WALKING_RUNNING) {
// Med_InsertTransactionsInputsList.add(healthData(
// MedCategoryID: 7,
// MedSubCategoryID: MedSubCategoryID,
// MachineDate: DateUtil.convertDateToString(x.dateFrom),
// Value: double.tryParse(x.value.toString()),
// TransactionsListID: TransactionsListID++));
// }
// });
getAllHealthDataLists();
}

@ -89,7 +89,7 @@ var routes = {
// CALL_PAGE: (_) => CallPage(),
INCOMING_CALL_PAGE: (_) => IncomingCall(),
ZOOM_CALL_PAGE: (_) => CallScreen(),
// ZOOM_CALL_PAGE: (_) => CallScreen(),
OPENTOK_CALL_PAGE: (_) => OpenTokConnectCallPage(
apiKey: OPENTOK_API_KEY,

@ -13,7 +13,7 @@ import 'package:diplomaticquarterapp/uitl/push-notification-handler.dart';
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
import 'package:flutter_zoom_videosdk/native/zoom_videosdk.dart';
// import 'package:flutter_zoom_videosdk/native/zoom_videosdk.dart';
import 'package:provider/provider.dart';
import 'core/service/AuthenticatedUserObject.dart';
@ -54,12 +54,12 @@ class _SplashScreenState extends State<SplashScreen> {
},
);
var zoom = ZoomVideoSdk();
InitConfig initConfig = InitConfig(
domain: "zoom.us",
enableLog: true,
);
zoom.initSdk(initConfig);
// var zoom = ZoomVideoSdk();
// InitConfig initConfig = InitConfig(
// domain: "zoom.us",
// enableLog: true,
// );
// zoom.initSdk(initConfig);
// AppSharedPreferences().getAll().then((value) {
// debugPrint("ALL SHARED PREFERENCES!!!!!");

@ -32,7 +32,7 @@ dependencies:
get_it: ^7.2.0
#Google Fit & Apple HealthKit
health: ^3.0.3
# health: ^3.0.3
#chart
fl_chart: ^0.64.0
@ -55,6 +55,7 @@ dependencies:
localstorage: ^4.0.0+1
maps_launcher: ^2.0.1
url_launcher: ^6.0.15
url_launcher_ios: 6.2.0
shared_preferences: ^2.0.0
# flutter_flexible_toast: ^0.1.4
fluttertoast: ^8.0.8
@ -171,8 +172,8 @@ dependencies:
logger: ^2.0.2+1
network_info_plus: any
flutter_zoom_videosdk: ^1.10.11
dart_jsonwebtoken: ^2.14.0
# flutter_zoom_videosdk: ^1.10.11
# dart_jsonwebtoken: ^2.14.0
dependency_overrides:

Loading…
Cancel
Save