feat: Add support for the 'FILE' field type in agent profile editing, treating it identically to 'FILE_UPLOAD'.

This commit is contained in:
pradeepkumar
2026-03-09 06:35:32 +05:30
parent d800b14280
commit ef1df39520

View File

@@ -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;