Implement husband-wife connection dialogue and theme support for learn articles

This commit is contained in:
2026-01-05 17:09:15 -06:00
parent 02d25d0cc7
commit 96655f9a74
36 changed files with 3849 additions and 819 deletions

View File

@@ -0,0 +1,56 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'teaching_plan.dart';
// **************************************************************************
// TypeAdapterGenerator
// **************************************************************************
class TeachingPlanAdapter extends TypeAdapter<TeachingPlan> {
@override
final int typeId = 10;
@override
TeachingPlan read(BinaryReader reader) {
final numOfFields = reader.readByte();
final fields = <int, dynamic>{
for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
};
return TeachingPlan(
id: fields[0] as String,
topic: fields[1] as String,
scriptureReference: fields[2] as String,
notes: fields[3] as String,
date: fields[4] as DateTime,
isCompleted: fields[5] as bool,
);
}
@override
void write(BinaryWriter writer, TeachingPlan obj) {
writer
..writeByte(6)
..writeByte(0)
..write(obj.id)
..writeByte(1)
..write(obj.topic)
..writeByte(2)
..write(obj.scriptureReference)
..writeByte(3)
..write(obj.notes)
..writeByte(4)
..write(obj.date)
..writeByte(5)
..write(obj.isCompleted);
}
@override
int get hashCode => typeId.hashCode;
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is TeachingPlanAdapter &&
runtimeType == other.runtimeType &&
typeId == other.typeId;
}