Files
BudgetApp/lib/logic/category/category_state.dart
T
Sanders 8b75299d41 Refactors data repositories for single-user mode
This commit refactors the data repositories to remove user-specific filtering. It simplifies the data access logic by retrieving all data from the Hive boxes and removing the need to filter by `userId` in the repository methods.

This change makes the app function in single-user mode and removes the need to manage multiple user contexts within the data layer.

Specifically:
- Removes `userId` parameter from repository methods.
- Updates the setting repository to use fixed keys.
- Removes user ID filtering from queries.
- Removes user ID parameters from Cubits and Blocs
- Updates initial data creation
2025-07-12 21:54:00 +03:00

31 lines
590 B
Dart

part of 'category_cubit.dart';
abstract class CategoryState extends Equatable {
const CategoryState();
@override
List<Object> get props => [];
}
class CategoryInitial extends CategoryState {}
class CategoryLoading extends CategoryState {}
class CategoryLoaded extends CategoryState {
final List<Category> categories;
const CategoryLoaded(this.categories);
@override
List<Object> get props => [categories];
}
class CategoryError extends CategoryState {
final String message;
const CategoryError(this.message);
@override
List<Object> get props => [message];
}