feat: Add sharePadSupplies setting and update SharingSettingsScreen
- Add sharePadSupplies field to UserProfile model (HiveField 58) - Update SharingSettingsScreen: Pad Supplies toggle disabled when pad tracking off - Update SharingSettingsScreen: Intimacy sharing always enabled (it's their husband) - Regenerate Hive adapters
This commit is contained in:
@@ -316,6 +316,9 @@ class UserProfile extends HiveObject {
|
||||
@HiveField(57)
|
||||
String? partnerId; // ID of the partner to sync with
|
||||
|
||||
@HiveField(58, defaultValue: true)
|
||||
bool sharePadSupplies; // Share pad supply data with partner
|
||||
|
||||
UserProfile({
|
||||
required this.id,
|
||||
required this.name,
|
||||
@@ -374,6 +377,7 @@ class UserProfile extends HiveObject {
|
||||
this.husbandAccentColor = '0xFF1A3A5C',
|
||||
this.useExampleData = false,
|
||||
this.partnerId,
|
||||
this.sharePadSupplies = true,
|
||||
});
|
||||
|
||||
/// Check if user is married
|
||||
@@ -457,6 +461,7 @@ class UserProfile extends HiveObject {
|
||||
String? husbandAccentColor,
|
||||
bool? useExampleData,
|
||||
String? partnerId,
|
||||
bool? sharePadSupplies,
|
||||
}) {
|
||||
return UserProfile(
|
||||
id: id ?? this.id,
|
||||
@@ -519,6 +524,7 @@ class UserProfile extends HiveObject {
|
||||
husbandAccentColor: husbandAccentColor ?? this.husbandAccentColor,
|
||||
useExampleData: useExampleData ?? this.useExampleData,
|
||||
partnerId: partnerId ?? this.partnerId,
|
||||
sharePadSupplies: sharePadSupplies ?? this.sharePadSupplies,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user