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:
@@ -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,
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user