What problem does it solve?
Provides a single, consistent implementation for managing user-configurable application settings, removing fragmentation between storage, business logic, and UI so users can control language, notifications, security, and app state reliably.
Core Features & Use Cases
- Persistent Settings Storage: Read and write AppSettingsEntity using Hive prefsBox to persist language, notification toggles, and biometric preference.
- Settings Use Cases: GetSettingsUseCase, UpdateSettingsUseCase, GetAppVersionUseCase, and ClearCacheUseCase (clears non-auth Hive boxes).
- Presentation & UX: Cubit-driven SettingsCubit with loading/loaded/error states, a grouped SettingsPage with toggles, navigation tiles, app version display and a destructive logout action.
- Integration Points: Secure storage for biometric flag, local_auth for biometric checks, and app locale update without restart.
Quick Start
Open the Settings page and use the controls to view and update preferences, toggle notification types, change language, enable biometric authentication, check the app version, or clear cached data.