:feature:settings
This module handles user preferences and app settings. It provides a UI for configuring app behavior and managing user preferences.
Features
Theme Configuration (Light/Dark)
Dynamic Color Toggle
Open Source Licenses
User Profile Settings
Sign Out Option
Preferences Persistence
Dependencies Graph
Usage
dependencies {
implementation(project(":feature:settings"))
}
Content copied to clipboard
Settings Dialog
@Composable
fun SettingsDialog(
onDismiss: () -> Unit,
onShowSnackbar: suspend (String, SnackbarAction, Throwable?) -> Boolean
)
Content copied to clipboard
Key Features
Theme Settings:
@Composable
fun ThemeSettings(
darkThemeConfig: DarkThemeConfig,
useDynamicColor: Boolean,
onDarkThemeConfigChange: (DarkThemeConfig) -> Unit,
onUseDynamicColorChange: (Boolean) -> Unit
)Content copied to clipboardProfile Settings:
@Composable
fun ProfileSettings(
onSignOut: () -> Unit,
onShowLicenses: () -> Unit
)Content copied to clipboard
The module uses DataStore Preferences for persistent storage of user settings.