From ef1df39520b2be68f2b25a549cd03a809f3e2081 Mon Sep 17 00:00:00 2001 From: pradeepkumar Date: Mon, 9 Mar 2026 06:35:32 +0530 Subject: [PATCH] feat: Add support for the 'FILE' field type in agent profile editing, treating it identically to 'FILE_UPLOAD'. --- .../agents/presentation/screens/agent_edit_profile_screen.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/features/agents/presentation/screens/agent_edit_profile_screen.dart b/lib/features/agents/presentation/screens/agent_edit_profile_screen.dart index 620e5f7..95d563a 100644 --- a/lib/features/agents/presentation/screens/agent_edit_profile_screen.dart +++ b/lib/features/agents/presentation/screens/agent_edit_profile_screen.dart @@ -238,6 +238,7 @@ class _AgentEditProfileScreenState final min = (rangeConfig?['min'] as num?)?.toDouble() ?? 0; final max = (rangeConfig?['max'] as num?)?.toDouble() ?? 100; return {'min': min, 'max': max}; + case 'FILE': case 'FILE_UPLOAD': // Keep as list of maps — don't stringify if (value is List) return value; @@ -852,6 +853,7 @@ class _AgentEditProfileScreenState case 'RANGE': fieldWidget = _buildRangeField(slug, currentValue, updateValue, field); break; + case 'FILE': case 'FILE_UPLOAD': fieldWidget = _buildFileUpload(slug, currentValue, updateValue); break;