Add Profile screen with name, title, company, phone, signature settings

This commit is contained in:
2026-01-27 22:59:25 +00:00
parent 99f0983446
commit 25733fe90b
4 changed files with 280 additions and 8 deletions

View File

@@ -187,4 +187,15 @@ class ApiClient {
Future<void> syncClientEvents(String clientId) async {
await _dio.post('/api/events/sync/$clientId');
}
// Profile
Future<Map<String, dynamic>> getProfile() async {
final response = await _dio.get('/api/profile');
return response.data;
}
Future<Map<String, dynamic>> updateProfile(Map<String, dynamic> data) async {
final response = await _dio.put('/api/profile', data: data);
return response.data;
}
}