feat: Add color and icon properties to categories, enhance category management in UI

This commit is contained in:
2026-05-20 17:10:44 +02:00
parent def755e1c5
commit 3ff4efb738
8 changed files with 517 additions and 45 deletions
+8
View File
@@ -8,6 +8,8 @@ class Category {
this.isDeleted = false,
required this.updatedAt,
this.isDirty = true,
this.colorValue,
this.iconCodePoint,
}) : id = id ?? Uuid().v4();
final String id;
@@ -16,6 +18,8 @@ class Category {
final bool isDeleted;
final DateTime updatedAt;
final bool isDirty;
final int? colorValue;
final int? iconCodePoint;
Category copyWith({
String? id,
@@ -24,6 +28,8 @@ class Category {
bool? isDeleted,
DateTime? updatedAt,
bool? isDirty,
int? colorValue,
int? iconCodePoint,
}) {
return Category(
id: id ?? this.id,
@@ -32,6 +38,8 @@ class Category {
isDeleted: isDeleted ?? this.isDeleted,
updatedAt: updatedAt ?? this.updatedAt,
isDirty: isDirty ?? this.isDirty,
colorValue: colorValue ?? this.colorValue,
iconCodePoint: iconCodePoint ?? this.iconCodePoint,
);
}