Enhance Pad Tracking with new Flow and Supply logic

This commit is contained in:
2026-01-09 13:35:07 -06:00
parent 24ffac2415
commit dc6bcad83f
17 changed files with 765 additions and 171 deletions

View File

@@ -62,17 +62,32 @@ class ChristianPeriodTrackerApp extends ConsumerWidget {
final Color accentColor;
if (userProfile != null) {
accentColor = _colorFromHex(userProfile.accentColor);
switch (userProfile.themeMode) {
case AppThemeMode.light:
themeMode = ThemeMode.light;
break;
case AppThemeMode.dark:
themeMode = ThemeMode.dark;
case AppThemeMode.system:
themeMode = ThemeMode.system;
break;
if (userProfile.isHusband) {
accentColor = _colorFromHex(userProfile.husbandAccentColor);
switch (userProfile.husbandThemeMode) {
case AppThemeMode.light:
themeMode = ThemeMode.light;
break;
case AppThemeMode.dark:
themeMode = ThemeMode.dark;
break;
case AppThemeMode.system:
themeMode = ThemeMode.system;
break;
}
} else {
accentColor = _colorFromHex(userProfile.accentColor);
switch (userProfile.themeMode) {
case AppThemeMode.light:
themeMode = ThemeMode.light;
break;
case AppThemeMode.dark:
themeMode = ThemeMode.dark;
break;
case AppThemeMode.system:
themeMode = ThemeMode.system;
break;
}
}
} else {
// Default theme for initial load or if profile is null