|
|
|
|
@ -1,4 +1,3 @@
|
|
|
|
|
import 'dart:io' show Platform;
|
|
|
|
|
import 'package:barcode_scan2/barcode_scan2.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/analytics/google-analytics.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/config/config.dart';
|
|
|
|
|
@ -27,20 +26,17 @@ import 'package:diplomaticquarterapp/services/livecare_services/livecare_provide
|
|
|
|
|
import 'package:diplomaticquarterapp/theme/colors.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/theme/theme_notifier.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/theme/theme_value.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/HMGNetworkConnectivity.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/LocalNotification.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/app_shared_preferences.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/app_toast.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/gif_loader_dialog_utils.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/utils.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/utils_new.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/voipcall/call/chat_outgoing_call_screen.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/voipcall/provider/chat_call_provider.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/widgets/dialogs/confirm_dialog.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/widgets/text/app_texts_widget.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/widgets/transitions/fade_page.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:flutter/services.dart';
|
|
|
|
|
|
|
|
|
|
// import 'package:flutter_amazonpaymentservices/environment_type.dart';
|
|
|
|
|
// import 'package:flutter_amazonpaymentservices/flutter_amazonpaymentservices.dart';
|
|
|
|
|
|
|
|
|
|
@ -66,6 +62,7 @@ class _AppDrawerState extends State<AppDrawer> {
|
|
|
|
|
final InAppReview _inAppReview = InAppReview.instance;
|
|
|
|
|
|
|
|
|
|
ProjectViewModel? projectProvider;
|
|
|
|
|
ChatCallProvider? callProv;
|
|
|
|
|
var sharedPref = new AppSharedPreferences();
|
|
|
|
|
var familyFileProvider = FamilyFilesProvider();
|
|
|
|
|
PharmacyModuleViewModel pharmacyModuleViewModel = locator<PharmacyModuleViewModel>();
|
|
|
|
|
@ -91,6 +88,8 @@ class _AppDrawerState extends State<AppDrawer> {
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
projectProvider = Provider.of(context);
|
|
|
|
|
toDoProvider = Provider.of<ToDoCountProviderModel>(context);
|
|
|
|
|
callProv = Provider.of<ChatCallProvider>(context);
|
|
|
|
|
|
|
|
|
|
return Container(
|
|
|
|
|
width: MediaQuery.of(context).size.width * 0.75,
|
|
|
|
|
color: Theme.of(context).scaffoldBackgroundColor,
|
|
|
|
|
@ -460,6 +459,32 @@ class _AppDrawerState extends State<AppDrawer> {
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.of(context).push(FadePage(page: UserAgreementPage()));
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
GestureDetector(
|
|
|
|
|
onTap: () async {
|
|
|
|
|
//Aamir Call
|
|
|
|
|
callProv!.buildHubConnection();
|
|
|
|
|
await callProv.makeCall(callType: "VIDEO").then((value) {
|
|
|
|
|
Future.delayed(Duration(seconds: 3), () {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
MaterialPageRoute(
|
|
|
|
|
builder: (BuildContext context) => OutGoingCall(
|
|
|
|
|
isVideoCall: value.callType == "VIDEO" ? true : false,
|
|
|
|
|
outGoingCallData: value,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
child: Card(
|
|
|
|
|
child: Container(
|
|
|
|
|
height: 50,
|
|
|
|
|
width: 200,
|
|
|
|
|
child: Center(child: Text("Call Test")),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
))
|
|
|
|
|
@ -699,7 +724,7 @@ class _AppDrawerState extends State<AppDrawer> {
|
|
|
|
|
// result.list.cRSVerificationStatus = result['CRSVerificationStatus'];
|
|
|
|
|
await this.sharedPref.setString(APP_LANGUAGE, currentLang);
|
|
|
|
|
await this.sharedPref.setString(BLOOD_TYPE, bloodType);
|
|
|
|
|
await this.sharedPref.setInt(LAST_LOGIN, loginType ?? 1 );
|
|
|
|
|
await this.sharedPref.setInt(LAST_LOGIN, loginType ?? 1);
|
|
|
|
|
await this.sharedPref.setObject(MAIN_USER, mainUser);
|
|
|
|
|
await this.sharedPref.setObject(USER_PROFILE, result.list);
|
|
|
|
|
await this.sharedPref.setObject(FAMILY_FILE, familyFile);
|
|
|
|
|
|