feat: Implement husband features and fix iOS Safari web startup
Implement initial features for husband's companion app, including mock data service and husband notes screen. Refactor scripture and cycle services for improved stability and testability. Address iOS Safari web app startup issue by removing deprecated initialization. - Implemented MockDataService and HusbandNotesScreen. - Converted _DashboardTab and DevotionalScreen to StatefulWidgets for robust scripture provider initialization. - Refactored CycleService to use immutable CycleInfo class, reducing UI rebuilds. - Removed deprecated window.flutterConfiguration from index.html, resolving Flutter web app startup failure on iOS Safari. - Updated and fixed related tests.
This commit is contained in:
@@ -29,35 +29,31 @@ class CycleEntryAdapter extends TypeAdapter<CycleEntry> {
|
||||
hasBreastTenderness: fields[9] as bool,
|
||||
hasFatigue: fields[10] as bool,
|
||||
hasAcne: fields[11] as bool,
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
hasLowerBackPain: fields[22] as bool,
|
||||
hasConstipation: fields[23] as bool,
|
||||
hasDiarrhea: fields[24] as bool,
|
||||
stressLevel: fields[25] as int?,
|
||||
hasInsomnia: fields[26] as bool,
|
||||
>>>>>>> 6742220 (Your commit message here)
|
||||
basalBodyTemperature: fields[12] as double?,
|
||||
cervicalMucus: fields[13] as CervicalMucusType?,
|
||||
ovulationTestPositive: fields[14] as bool?,
|
||||
notes: fields[15] as String?,
|
||||
cravings: (fields[27] as List?)?.cast<String>(),
|
||||
sleepHours: fields[16] as int?,
|
||||
waterIntake: fields[17] as int?,
|
||||
hadExercise: fields[18] as bool,
|
||||
hadIntimacy: fields[19] as bool,
|
||||
intimacyProtected: fields[29] as bool?,
|
||||
createdAt: fields[20] as DateTime,
|
||||
updatedAt: fields[21] as DateTime,
|
||||
husbandNotes: fields[28] as String?,
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
void write(BinaryWriter writer, CycleEntry obj) {
|
||||
writer
|
||||
<<<<<<< HEAD
|
||||
..writeByte(22)
|
||||
=======
|
||||
..writeByte(27)
|
||||
>>>>>>> 6742220 (Your commit message here)
|
||||
..writeByte(30)
|
||||
..writeByte(0)
|
||||
..write(obj.id)
|
||||
..writeByte(1)
|
||||
@@ -82,8 +78,6 @@ class CycleEntryAdapter extends TypeAdapter<CycleEntry> {
|
||||
..write(obj.hasFatigue)
|
||||
..writeByte(11)
|
||||
..write(obj.hasAcne)
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
..writeByte(22)
|
||||
..write(obj.hasLowerBackPain)
|
||||
..writeByte(23)
|
||||
@@ -94,7 +88,6 @@ class CycleEntryAdapter extends TypeAdapter<CycleEntry> {
|
||||
..write(obj.stressLevel)
|
||||
..writeByte(26)
|
||||
..write(obj.hasInsomnia)
|
||||
>>>>>>> 6742220 (Your commit message here)
|
||||
..writeByte(12)
|
||||
..write(obj.basalBodyTemperature)
|
||||
..writeByte(13)
|
||||
@@ -114,7 +107,13 @@ class CycleEntryAdapter extends TypeAdapter<CycleEntry> {
|
||||
..writeByte(20)
|
||||
..write(obj.createdAt)
|
||||
..writeByte(21)
|
||||
..write(obj.updatedAt);
|
||||
..write(obj.updatedAt)
|
||||
..writeByte(27)
|
||||
..write(obj.cravings)
|
||||
..writeByte(28)
|
||||
..write(obj.husbandNotes)
|
||||
..writeByte(29)
|
||||
..write(obj.intimacyProtected);
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user