Enhance Pad Tracking with new Flow and Supply logic
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user