feat: implement dynamic field labels for agent profile sections using backend-provided slugs
This commit is contained in:
@@ -1052,7 +1052,7 @@ class _AgentHomeContentState extends ConsumerState<_AgentHomeContent> {
|
||||
// Availability card (with title — matches web)
|
||||
_buildInfoCard(
|
||||
icon: Icons.access_time_filled,
|
||||
title: 'Availability',
|
||||
title: state.availabilityLabel,
|
||||
subtitle: state.availabilityType.isNotEmpty
|
||||
? state.availabilityType
|
||||
: 'Not specified',
|
||||
@@ -1062,18 +1062,18 @@ class _AgentHomeContentState extends ConsumerState<_AgentHomeContent> {
|
||||
isEmpty: state.availabilityType.isEmpty,
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
// Work environment (no title — matches web)
|
||||
// Work environment
|
||||
_buildInfoCard(
|
||||
icon: Icons.landscape_outlined,
|
||||
title: '',
|
||||
title: state.workEnvironmentLabel,
|
||||
subtitle: '',
|
||||
description: workEnv,
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
// Testimonial preview (no title — matches web)
|
||||
// Testimonial preview
|
||||
_buildInfoCard(
|
||||
icon: Icons.star_rounded,
|
||||
title: '',
|
||||
title: state.bestExperienceLabel,
|
||||
subtitle: '',
|
||||
description: testimonialText.isNotEmpty
|
||||
? '\u201C$testimonialText\u201D'
|
||||
|
||||
Reference in New Issue
Block a user