king_kahild_app
haroon amjad 5 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['IdentificationNo'] = 1023854217;
// body['MobileNo'] = "531940021"; //0560717232 // body['MobileNo'] = "531940021"; //0560717232
// body['PatientID'] = 283093; //4609100 // body['PatientID'] = 1071; //4609100
// body['TokenID'] = "@dm!n"; // body['TokenID'] = "@dm!n";
// Patient ID: 3027574 // Patient ID: 3027574

File diff suppressed because it is too large Load Diff

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

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

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

@ -89,7 +89,7 @@ var routes = {
// CALL_PAGE: (_) => CallPage(), // CALL_PAGE: (_) => CallPage(),
INCOMING_CALL_PAGE: (_) => IncomingCall(), INCOMING_CALL_PAGE: (_) => IncomingCall(),
ZOOM_CALL_PAGE: (_) => CallScreen(), // ZOOM_CALL_PAGE: (_) => CallScreen(),
OPENTOK_CALL_PAGE: (_) => OpenTokConnectCallPage( OPENTOK_CALL_PAGE: (_) => OpenTokConnectCallPage(
apiKey: OPENTOK_API_KEY, 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:diplomaticquarterapp/uitl/translations_delegate_base.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.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 'package:provider/provider.dart';
import 'core/service/AuthenticatedUserObject.dart'; import 'core/service/AuthenticatedUserObject.dart';
@ -54,12 +54,12 @@ class _SplashScreenState extends State<SplashScreen> {
}, },
); );
var zoom = ZoomVideoSdk(); // var zoom = ZoomVideoSdk();
InitConfig initConfig = InitConfig( // InitConfig initConfig = InitConfig(
domain: "zoom.us", // domain: "zoom.us",
enableLog: true, // enableLog: true,
); // );
zoom.initSdk(initConfig); // zoom.initSdk(initConfig);
// AppSharedPreferences().getAll().then((value) { // AppSharedPreferences().getAll().then((value) {
// debugPrint("ALL SHARED PREFERENCES!!!!!"); // debugPrint("ALL SHARED PREFERENCES!!!!!");

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

Loading…
Cancel
Save