feat: Implement agent search functionality and update the home screen to dynamically display professional data.

This commit is contained in:
pradeepkumar
2026-03-07 10:25:53 +05:30
parent 379fbfe0a8
commit aefe80253f
18 changed files with 1655 additions and 627 deletions

View File

@@ -44,6 +44,7 @@ class AgentsRepository {
/// Response: { success, data: { data: [...], meta: {...} } }
Future<SearchAgentsResponse> searchAgents({
String? agentTypeId,
String? search,
int page = 1,
int limit = 10,
String? sortBy,
@@ -56,6 +57,7 @@ class AgentsRepository {
};
if (agentTypeId != null) queryParams['agentTypeId'] = agentTypeId;
if (search != null && search.isNotEmpty) queryParams['search'] = search;
if (sortBy != null) queryParams['sortBy'] = sortBy;
if (sortOrder != null) queryParams['sortOrder'] = sortOrder;