ThemeProvider

interface ThemeProvider

An interface that provides theme management capabilities.

Implementations of this interface are responsible for managing the current theme state and providing the ability to update the theme. This abstraction allows for different storage backends (in-memory, persistent storage, etc.) while maintaining a consistent API.

Inheritors

Properties

Link copied to clipboard
abstract val currentTheme: StateFlow<Theme>

A StateFlow that emits the current theme whenever it changes.

Functions

Link copied to clipboard
abstract suspend fun updateTheme(theme: Theme)

Updates the current theme to the specified value.