dynamic theme, basic category settings
This commit is contained in:
@@ -13,4 +13,55 @@ final class CategoriesLoad extends CategoryEvent {
|
||||
|
||||
@override
|
||||
List<Object> get props => [categories];
|
||||
}
|
||||
}
|
||||
|
||||
final class CategoryEditColor extends CategoryEvent {
|
||||
final Category category;
|
||||
final String color;
|
||||
|
||||
const CategoryEditColor(this.category, this.color);
|
||||
|
||||
@override
|
||||
List<Object> get props => [category, color];
|
||||
}
|
||||
|
||||
final class CategoryEditTransfert extends CategoryEvent {
|
||||
final Category category;
|
||||
final bool transfert;
|
||||
|
||||
const CategoryEditTransfert(this.category, this.transfert);
|
||||
|
||||
@override
|
||||
List<Object> get props => [category, transfert];
|
||||
}
|
||||
|
||||
final class CategoryEditEssential extends CategoryEvent {
|
||||
final Category category;
|
||||
final bool essential;
|
||||
|
||||
const CategoryEditEssential(this.category, this.essential);
|
||||
|
||||
@override
|
||||
List<Object> get props => [category, essential];
|
||||
}
|
||||
|
||||
final class CategoryEditLabel extends CategoryEvent {
|
||||
final Category category;
|
||||
final String label;
|
||||
|
||||
const CategoryEditLabel(this.category, this.label);
|
||||
|
||||
@override
|
||||
List<Object> get props => [category, label];
|
||||
}
|
||||
|
||||
final class CategoryRemove extends CategoryEvent {
|
||||
final Category category;
|
||||
|
||||
const CategoryRemove(this.category);
|
||||
|
||||
@override
|
||||
List<Object> get props => [category];
|
||||
}
|
||||
|
||||
final class CategoryAdd extends CategoryEvent {}
|
||||
Reference in New Issue
Block a user