Files
BudgetApp/lib/models/global_settings.dart
T
Sanders 9bae137d08 Refactors user management to use UserCubit
This commit refactors the user management system to utilize UserCubit, improving state management and separation of concerns.

- Replaces UserService with UserCubit for managing user state.
- Introduces AppSettings and GlobalSettings models and repositories for managing app-level settings and configurations.
- Modifies dependency injection to register the new repositories and cubits.
- Updates UI components (LoginPage, SettingsPage, HomePage, AddTransactionDialog, CategoryListPage, TagListPage) to interact with UserCubit and SettingsCubit.
- Removes direct dependency on UserRepository in favor of UserCubit for accessing user information.
- Streamlines the authentication process by using UserCubit to handle user creation and login.
- Improves settings management by using dedicated repositories and cubits for app settings.
2025-07-07 00:29:15 +03:00

14 lines
228 B
Dart

import 'package:hive_ce/hive.dart';
part 'global_settings.g.dart';
@HiveType(typeId: 1006)
class GlobalSettings extends HiveObject {
@HiveField(0)
String? currentUserId;
GlobalSettings({
this.currentUserId,
});
}