refactor: move verified badge below agent name and remove match percentage display in agent search screen
This commit is contained in:
@@ -475,11 +475,8 @@ class _AgentCardState extends State<_AgentCard> {
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
// Name row with verified badge
|
||||
Row(
|
||||
children: [
|
||||
Flexible(
|
||||
child: Text.rich(
|
||||
// Name
|
||||
Text.rich(
|
||||
TextSpan(
|
||||
children: [
|
||||
TextSpan(
|
||||
@@ -502,11 +499,14 @@ class _AgentCardState extends State<_AgentCard> {
|
||||
),
|
||||
],
|
||||
),
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
),
|
||||
// Verified badge
|
||||
if (agent.isVerified) ...[
|
||||
const SizedBox(width: 6),
|
||||
const SizedBox(height: 4),
|
||||
Row(
|
||||
children: [
|
||||
SvgPicture.asset(
|
||||
'assets/icons/verified_badge_icon.svg',
|
||||
width: 16,
|
||||
@@ -528,32 +528,8 @@ class _AgentCardState extends State<_AgentCard> {
|
||||
),
|
||||
),
|
||||
],
|
||||
// Match badge
|
||||
if (agent.matchPercentage != null) ...[
|
||||
const SizedBox(width: 8),
|
||||
Container(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 4),
|
||||
decoration: BoxDecoration(
|
||||
color: agent.matchPercentage! >= 80
|
||||
? const Color(0xFF638559)
|
||||
: agent.matchPercentage! >= 65
|
||||
? const Color(0xFF7D917D)
|
||||
: AppColors.primaryDark.withValues(alpha: 0.6),
|
||||
borderRadius: BorderRadius.circular(20),
|
||||
),
|
||||
child: Text(
|
||||
'${agent.matchPercentage}% Match',
|
||||
style: const TextStyle(
|
||||
fontFamily: 'SourceSerif4',
|
||||
fontSize: 12,
|
||||
fontWeight: FontWeight.w500,
|
||||
color: Colors.white,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
],
|
||||
),
|
||||
const SizedBox(height: 4),
|
||||
|
||||
// Headline / title
|
||||
|
||||
Reference in New Issue
Block a user