Implement husband-wife connection dialogue and theme support for learn articles
This commit is contained in:
@@ -166,7 +166,13 @@ class CycleEntry extends HiveObject {
|
||||
String? husbandNotes; // Separate notes for husband
|
||||
|
||||
@HiveField(29)
|
||||
bool? intimacyProtected; // null = no intimacy, true = protected, false = unprotected
|
||||
bool? intimacyProtected; // null = no selection, true = protected, false = unprotected
|
||||
|
||||
@HiveField(30, defaultValue: false)
|
||||
bool usedPantyliner;
|
||||
|
||||
@HiveField(31, defaultValue: 0)
|
||||
int pantylinerCount;
|
||||
|
||||
CycleEntry({
|
||||
required this.id,
|
||||
@@ -199,6 +205,8 @@ class CycleEntry extends HiveObject {
|
||||
required this.createdAt,
|
||||
required this.updatedAt,
|
||||
this.husbandNotes,
|
||||
this.usedPantyliner = false,
|
||||
this.pantylinerCount = 0,
|
||||
});
|
||||
|
||||
List<bool> get _symptomsList => [
|
||||
@@ -261,6 +269,8 @@ class CycleEntry extends HiveObject {
|
||||
DateTime? createdAt,
|
||||
DateTime? updatedAt,
|
||||
String? husbandNotes,
|
||||
bool? usedPantyliner,
|
||||
int? pantylinerCount,
|
||||
}) {
|
||||
return CycleEntry(
|
||||
id: id ?? this.id,
|
||||
@@ -293,6 +303,8 @@ class CycleEntry extends HiveObject {
|
||||
createdAt: createdAt ?? this.createdAt,
|
||||
updatedAt: updatedAt ?? DateTime.now(),
|
||||
husbandNotes: husbandNotes ?? this.husbandNotes,
|
||||
usedPantyliner: usedPantyliner ?? this.usedPantyliner,
|
||||
pantylinerCount: pantylinerCount ?? this.pantylinerCount,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user