juice_theme 0.1.1
juice_theme: ^0.1.1 copied to clipboard
App theme selection (mode + flavor) as a Juice bloc, with optional persistence behind a swappable seam.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.1.0 - 2026-05-28 #
Added #
- Initial release.
ThemeBloc— owns the theme selection:ThemeMode+ optional named flavor.ThemePersistence— vendor seam; the bloc depends on this, not on storage, so it is testable without real storage.StorageThemePersistence— default persistence backed byStorageBloc(SharedPreferences). Passnullfor in-memory-only.- Convenience —
setMode,toggle(light⇄dark),setFlavor; gettersisDarkMode/isLightMode/isSystemMode. - Rebuild groups —
theme:mode,theme:flavor.