feat: implement dynamic field labels for agent profile sections using backend-provided slugs
This commit is contained in:
@@ -999,7 +999,7 @@ class _AgentDetailScreenState extends ConsumerState<AgentDetailScreen> {
|
||||
// Availability card (always show)
|
||||
_buildInfoCard(
|
||||
icon: Icons.access_time_filled,
|
||||
title: 'Availability',
|
||||
title: state.availabilityLabel,
|
||||
subtitle: state.availabilityType.isNotEmpty
|
||||
? state.availabilityType
|
||||
: 'Not specified',
|
||||
@@ -1012,7 +1012,7 @@ class _AgentDetailScreenState extends ConsumerState<AgentDetailScreen> {
|
||||
// Work environment (always show)
|
||||
_buildInfoCard(
|
||||
icon: Icons.landscape_outlined,
|
||||
title: 'Work Environment',
|
||||
title: state.workEnvironmentLabel,
|
||||
subtitle: '',
|
||||
description: workEnv.isNotEmpty ? workEnv : 'Not specified',
|
||||
isEmpty: workEnv.isEmpty,
|
||||
@@ -1021,7 +1021,7 @@ class _AgentDetailScreenState extends ConsumerState<AgentDetailScreen> {
|
||||
// Best experience (always show)
|
||||
_buildInfoCard(
|
||||
icon: Icons.star_rounded,
|
||||
title: 'Best Experience',
|
||||
title: state.bestExperienceLabel,
|
||||
subtitle: '',
|
||||
description: bestExp.isNotEmpty ? bestExp : 'Not specified',
|
||||
isEmpty: bestExp.isEmpty,
|
||||
|
||||
Reference in New Issue
Block a user