feature/settings — App Settings

Manage Flutter app settings with Hive persistence and Cubit state management.

Updated Apr 13, 2026
One-click install
npx skills add https://github.com/Vantoan252003/Mozi --skill feature-settings-app-settings
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: feature/settings — App Settings
Source: https://github.com/Vantoan252003/Mozi/tree/main/lib/features/settings
Command: npx skills add https://github.com/Vantoan252003/Mozi --skill feature-settings-app-settings

SYSTEM DOCUMENTATION & REQUIREMENTS

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.

Frequently Asked Questions about feature/settings — App Settings

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage Flutter app settings with Hive and Cubit?

Manage Flutter app settings by persisting AppSettingsEntity in a Hive prefsBox and driving UI updates through a Cubit state management pattern for reliable preference retrieval and updates.

How do I add biometric authentication to a Flutter app using local_auth?

Add biometric authentication by integrating the local_auth package and storing the biometric enablement flag in secure storage, allowing the settings UI to toggle the security check for app access.

What is the best way to clear local cache in a Flutter application?

Clear local cache in Flutter by executing a ClearCacheUseCase that selectively empties non-authentication Hive boxes, preserving user login data while removing temporary cached files and data.

Can I change the app language dynamically in Flutter without a restart?

You can change the app language dynamically by updating the locale preference within the settings workflow, which applies the new language configuration immediately without requiring an application restart.

Does this Flutter settings implementation handle notification toggles?

This implementation handles notification toggles by storing boolean preferences in Hive local storage and reflecting the switch states through the Cubit, ensuring notification types are persisted across app sessions.