|
|
|
@ -313,7 +313,7 @@ class _MarkAttendanceWidgetState extends State<MarkAttendanceWidget> {
|
|
|
|
|
void getHuaweiCurrentLocation(String attendanceType) async {
|
|
|
|
|
try {
|
|
|
|
|
Utils.showLoading(context);
|
|
|
|
|
FusedLocationProviderClient locationService = FusedLocationProviderClient();
|
|
|
|
|
FusedLocationProviderClient locationService = FusedLocationProviderClient()..initFusedLocationService();
|
|
|
|
|
LocationRequest locationRequest = LocationRequest();
|
|
|
|
|
locationRequest.priority = LocationRequest.PRIORITY_BALANCED_POWER_ACCURACY;
|
|
|
|
|
locationRequest.interval = 500;
|
|
|
|
@ -377,6 +377,8 @@ class _MarkAttendanceWidgetState extends State<MarkAttendanceWidget> {
|
|
|
|
|
} catch (error) {
|
|
|
|
|
print("HUAWEI LOCATION ERROR!!!!!");
|
|
|
|
|
print(error);
|
|
|
|
|
Utils.hideLoading(context);
|
|
|
|
|
Utils.handleException(error, context, null);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|