feat: Add support for the 'FILE' field type in agent profile editing, treating it identically to 'FILE_UPLOAD'.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user