location has been enabled in addition to sending the domain

This commit is contained in:
Daniah Ayad Al-sultani
2026-02-22 14:06:02 +03:00
parent f616a2c104
commit 8b0d849f1b
22 changed files with 312 additions and 43 deletions

View File

@@ -5,9 +5,15 @@ class AttendanceLoginRequest {
final File faceImage;
final bool localAuth;
// ✅ NEW
final double? latitude;
final double? longitude;
AttendanceLoginRequest({
required this.employeeId,
required this.faceImage,
this.localAuth = false,
this.latitude,
this.longitude,
});
}

View File

@@ -5,9 +5,15 @@ class AttendanceLogoutRequest {
final File faceImage;
final bool localAuth;
// ✅ NEW
final double? latitude;
final double? longitude;
AttendanceLogoutRequest({
required this.employeeId,
required this.faceImage,
this.localAuth = false,
this.latitude,
this.longitude,
});
}

View File

@@ -0,0 +1,8 @@
class LocationPayload {
final double lat;
final double lng;
const LocationPayload({required this.lat, required this.lng});
Map<String, dynamic> toJson() => {'latitude': lat, 'longitude': lng};
}

View File

@@ -1,6 +1,11 @@
class ThemeModel {
final String name;
final String logo; // filename or url
final String logo;
final String logoUrl;
const ThemeModel({required this.name, required this.logo});
const ThemeModel({
required this.name,
required this.logo,
required this.logoUrl,
});
}