|
|
|
|
@ -5,6 +5,7 @@ import 'package:diplomaticquarterapp/models/LiveCare/ERAppointmentFeesResponse.d
|
|
|
|
|
import 'package:diplomaticquarterapp/theme/colors.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/PlatformBridge.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/app_toast.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/location_util.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/utils_new.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/widgets/buttons/defaultButton.dart';
|
|
|
|
|
@ -31,6 +32,7 @@ class _LiveCarePatmentPageState extends State<LiveCarePatmentPage> {
|
|
|
|
|
int _selected = 0;
|
|
|
|
|
|
|
|
|
|
ProjectViewModel projectViewModel;
|
|
|
|
|
LocationUtils locationUtils;
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
@ -289,6 +291,10 @@ class _LiveCarePatmentPageState extends State<LiveCarePatmentPage> {
|
|
|
|
|
} else {
|
|
|
|
|
askVideoCallPermission().then((value) async {
|
|
|
|
|
if (value) {
|
|
|
|
|
locationUtils = new LocationUtils(isShowConfirmDialog: false, context: context);
|
|
|
|
|
locationUtils.getCurrentLocation(callBack: (value) {
|
|
|
|
|
print(value);
|
|
|
|
|
});
|
|
|
|
|
if (Platform.isAndroid && !(await PlatformBridge.shared().isDrawOverAppsPermissionAllowed())) {
|
|
|
|
|
await drawOverAppsMessageDialog(context).then((value) {
|
|
|
|
|
return false;
|
|
|
|
|
@ -316,7 +322,7 @@ class _LiveCarePatmentPageState extends State<LiveCarePatmentPage> {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Future<bool> askVideoCallPermission() async {
|
|
|
|
|
if (!(await Permission.camera.request().isGranted) || !(await Permission.microphone.request().isGranted)) {
|
|
|
|
|
if (!(await Permission.camera.request().isGranted) || !(await Permission.microphone.request().isGranted) || !(await Permission.location.request().isGranted)) {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
return true;
|
|
|
|
|
|