Implement husband-wife connection dialogue and theme support for learn articles
This commit is contained in:
@@ -76,6 +76,8 @@ class UserProfileAdapter extends TypeAdapter<UserProfile> {
|
||||
partnerName: fields[12] as String?,
|
||||
role: fields[14] == null ? UserRole.wife : fields[14] as UserRole,
|
||||
isIrregularCycle: fields[15] == null ? false : fields[15] as bool,
|
||||
minCycleLength: fields[41] == null ? 21 : fields[41] as int,
|
||||
maxCycleLength: fields[42] == null ? 40 : fields[42] as int,
|
||||
bibleTranslation: fields[16] == null
|
||||
? BibleTranslation.esv
|
||||
: fields[16] as BibleTranslation,
|
||||
@@ -105,13 +107,24 @@ class UserProfileAdapter extends TypeAdapter<UserProfile> {
|
||||
padSupplies: (fields[38] as List?)?.cast<SupplyItem>(),
|
||||
showPadTimerMinutes: fields[39] == null ? true : fields[39] as bool,
|
||||
showPadTimerSeconds: fields[40] == null ? false : fields[40] as bool,
|
||||
notifyPad1Hour: fields[43] == null ? false : fields[43] as bool,
|
||||
notifyPad2Hours: fields[44] == null ? false : fields[44] as bool,
|
||||
privacyPin: fields[45] as String?,
|
||||
isBioProtected: fields[46] == null ? false : fields[46] as bool,
|
||||
isHistoryProtected: fields[47] == null ? false : fields[47] as bool,
|
||||
notifyPad30Mins: fields[48] == null ? false : fields[48] as bool,
|
||||
notifyPadNow: fields[49] == null ? true : fields[49] as bool,
|
||||
isLogProtected: fields[50] == null ? false : fields[50] as bool,
|
||||
isCalendarProtected: fields[51] == null ? false : fields[51] as bool,
|
||||
isSuppliesProtected: fields[52] == null ? false : fields[52] as bool,
|
||||
teachingPlans: (fields[53] as List?)?.cast<TeachingPlan>(),
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
void write(BinaryWriter writer, UserProfile obj) {
|
||||
writer
|
||||
..writeByte(40)
|
||||
..writeByte(53)
|
||||
..writeByte(0)
|
||||
..write(obj.id)
|
||||
..writeByte(1)
|
||||
@@ -142,6 +155,10 @@ class UserProfileAdapter extends TypeAdapter<UserProfile> {
|
||||
..write(obj.role)
|
||||
..writeByte(15)
|
||||
..write(obj.isIrregularCycle)
|
||||
..writeByte(41)
|
||||
..write(obj.minCycleLength)
|
||||
..writeByte(42)
|
||||
..write(obj.maxCycleLength)
|
||||
..writeByte(16)
|
||||
..write(obj.bibleTranslation)
|
||||
..writeByte(17)
|
||||
@@ -191,7 +208,29 @@ class UserProfileAdapter extends TypeAdapter<UserProfile> {
|
||||
..writeByte(39)
|
||||
..write(obj.showPadTimerMinutes)
|
||||
..writeByte(40)
|
||||
..write(obj.showPadTimerSeconds);
|
||||
..write(obj.showPadTimerSeconds)
|
||||
..writeByte(43)
|
||||
..write(obj.notifyPad1Hour)
|
||||
..writeByte(44)
|
||||
..write(obj.notifyPad2Hours)
|
||||
..writeByte(45)
|
||||
..write(obj.privacyPin)
|
||||
..writeByte(46)
|
||||
..write(obj.isBioProtected)
|
||||
..writeByte(47)
|
||||
..write(obj.isHistoryProtected)
|
||||
..writeByte(48)
|
||||
..write(obj.notifyPad30Mins)
|
||||
..writeByte(49)
|
||||
..write(obj.notifyPadNow)
|
||||
..writeByte(50)
|
||||
..write(obj.isLogProtected)
|
||||
..writeByte(51)
|
||||
..write(obj.isCalendarProtected)
|
||||
..writeByte(52)
|
||||
..write(obj.isSuppliesProtected)
|
||||
..writeByte(53)
|
||||
..write(obj.teachingPlans);
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user