Implement Notifications and Pad Tracking Enhancements
This commit is contained in:
@@ -302,6 +302,17 @@ class UserProfile extends HiveObject {
|
||||
@HiveField(53)
|
||||
List<TeachingPlan>? teachingPlans;
|
||||
|
||||
// Husband-specific theme settings
|
||||
@HiveField(54, defaultValue: AppThemeMode.system)
|
||||
AppThemeMode husbandThemeMode;
|
||||
|
||||
@HiveField(55, defaultValue: '0xFF1A3A5C')
|
||||
String husbandAccentColor;
|
||||
|
||||
// Whether to use example/demo data (for husband not connected to wife)
|
||||
@HiveField(56, defaultValue: false)
|
||||
bool useExampleData;
|
||||
|
||||
UserProfile({
|
||||
required this.id,
|
||||
required this.name,
|
||||
@@ -356,6 +367,9 @@ class UserProfile extends HiveObject {
|
||||
this.isCalendarProtected = false,
|
||||
this.isSuppliesProtected = false,
|
||||
this.teachingPlans,
|
||||
this.husbandThemeMode = AppThemeMode.system,
|
||||
this.husbandAccentColor = '0xFF1A3A5C',
|
||||
this.useExampleData = false,
|
||||
});
|
||||
|
||||
/// Check if user is married
|
||||
@@ -435,6 +449,9 @@ class UserProfile extends HiveObject {
|
||||
bool? isCalendarProtected,
|
||||
bool? isSuppliesProtected,
|
||||
List<TeachingPlan>? teachingPlans,
|
||||
AppThemeMode? husbandThemeMode,
|
||||
String? husbandAccentColor,
|
||||
bool? useExampleData,
|
||||
}) {
|
||||
return UserProfile(
|
||||
id: id ?? this.id,
|
||||
@@ -470,8 +487,10 @@ class UserProfile extends HiveObject {
|
||||
padBrand: padBrand ?? this.padBrand,
|
||||
padAbsorbency: padAbsorbency ?? this.padAbsorbency,
|
||||
padInventoryCount: padInventoryCount ?? this.padInventoryCount,
|
||||
lowInventoryThreshold: lowInventoryThreshold ?? this.lowInventoryThreshold,
|
||||
isAutoInventoryEnabled: isAutoInventoryEnabled ?? this.isAutoInventoryEnabled,
|
||||
lowInventoryThreshold:
|
||||
lowInventoryThreshold ?? this.lowInventoryThreshold,
|
||||
isAutoInventoryEnabled:
|
||||
isAutoInventoryEnabled ?? this.isAutoInventoryEnabled,
|
||||
lastInventoryUpdate: lastInventoryUpdate ?? this.lastInventoryUpdate,
|
||||
notifyPeriodEstimate: notifyPeriodEstimate ?? this.notifyPeriodEstimate,
|
||||
notifyPeriodStart: notifyPeriodStart ?? this.notifyPeriodStart,
|
||||
@@ -491,6 +510,9 @@ class UserProfile extends HiveObject {
|
||||
isCalendarProtected: isCalendarProtected ?? this.isCalendarProtected,
|
||||
isSuppliesProtected: isSuppliesProtected ?? this.isSuppliesProtected,
|
||||
teachingPlans: teachingPlans ?? this.teachingPlans,
|
||||
husbandThemeMode: husbandThemeMode ?? this.husbandThemeMode,
|
||||
husbandAccentColor: husbandAccentColor ?? this.husbandAccentColor,
|
||||
useExampleData: useExampleData ?? this.useExampleData,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user