From 61060527f869361c6d36a98bae05b4701fd8917f Mon Sep 17 00:00:00 2001 From: pradeepkumar Date: Sat, 28 Mar 2026 20:21:11 +0530 Subject: [PATCH] feat: add "+ more" indicator to agent specialization tags when exceeding limit --- .../screens/agent_search_screen.dart | 32 ++++++++++++++++--- 1 file changed, 27 insertions(+), 5 deletions(-) diff --git a/lib/features/agents/presentation/screens/agent_search_screen.dart b/lib/features/agents/presentation/screens/agent_search_screen.dart index ece52a0..6a5ef18 100644 --- a/lib/features/agents/presentation/screens/agent_search_screen.dart +++ b/lib/features/agents/presentation/screens/agent_search_screen.dart @@ -696,16 +696,38 @@ class _AgentCardState extends State<_AgentCard> { ), const SizedBox(height: 12), - // Specialization tags + // Expertise tags if (specializations.isNotEmpty) ...[ Wrap( alignment: WrapAlignment.start, spacing: 6, runSpacing: 6, - children: specializations - .take(6) - .map((tag) => _buildTag(tag)) - .toList(), + children: [ + ...specializations + .take(6) + .map((tag) => _buildTag(tag)), + if (specializations.length > 6) + Container( + padding: const EdgeInsets.symmetric( + horizontal: 10, vertical: 5), + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(20), + color: AppColors.accentOrange + .withValues(alpha: 0.1), + border: Border.all( + color: AppColors.accentOrange, width: 0.7), + ), + child: Text( + '+${specializations.length - 6} more', + style: const TextStyle( + fontFamily: 'SourceSerif4', + fontSize: 13, + fontWeight: FontWeight.w600, + color: AppColors.accentOrange, + ), + ), + ), + ], ), const SizedBox(height: 14), ],