refactor: Replace attire option 'icon' field with 'description' across the schema and data models, and update the UI to display the new description.

This commit is contained in:
Achintha Isuru
2026-02-24 15:13:06 -05:00
parent 7744dbf1b3
commit b29351a3aa
6 changed files with 68 additions and 68 deletions

View File

@@ -4,23 +4,23 @@ import 'package:equatable/equatable.dart';
///
/// Attire items are specific clothing or equipment required for jobs.
class AttireItem extends Equatable {
/// Creates an [AttireItem].
const AttireItem({
required this.id,
required this.label,
this.iconName,
this.description,
this.imageUrl,
this.isMandatory = false,
});
/// Unique identifier of the attire item.
final String id;
/// Display name of the item.
final String label;
/// Name of the icon to display (mapped in UI).
final String? iconName;
/// Optional description for the attire item.
final String? description;
/// URL of the reference image.
final String? imageUrl;
@@ -29,5 +29,11 @@ class AttireItem extends Equatable {
final bool isMandatory;
@override
List<Object?> get props => <Object?>[id, label, iconName, imageUrl, isMandatory];
List<Object?> get props => <Object?>[
id,
label,
description,
imageUrl,
isMandatory,
];
}