update the app

This commit is contained in:
root
2026-05-25 15:56:00 -04:00
parent 277db06d26
commit 7ca43ba2f3
19 changed files with 1854 additions and 210 deletions
+6
View File
@@ -34,6 +34,12 @@ class ApiClient {
handler.next(response);
},
onError: (e, handler) {
// Log API errors to help diagnose issues during development.
final resp = e.response;
if (resp != null) {
// ignore: avoid_print
print('[API] ${e.requestOptions.method} ${e.requestOptions.path}${resp.statusCode}: ${resp.data}');
}
handler.next(e);
},
));
+4 -2
View File
@@ -74,7 +74,8 @@ class MarketplaceService {
required String firstName,
required String lastName,
required String email,
String? phone,
required String phone,
required String driverLicense,
required DateTime startDate,
required DateTime endDate,
String? notes,
@@ -86,7 +87,8 @@ class MarketplaceService {
'firstName': firstName,
'lastName': lastName,
'email': email,
if (phone != null && phone.isNotEmpty) 'phone': phone,
'phone': phone,
'driverLicense': driverLicense,
'startDate': '${startDate.toIso8601String().substring(0, 10)}T00:00:00.000Z',
'endDate': '${endDate.toIso8601String().substring(0, 10)}T00:00:00.000Z',
if (notes != null && notes.isNotEmpty) 'notes': notes,