feat: Add auto-sync, fix partner linking UI, update sharing settings
- Add 10-second periodic auto-sync to CycleEntriesNotifier - Fix husband_devotional_screen: use partnerId for isConnected check, navigate to SharingSettingsScreen instead of legacy mock dialog - Remove obsolete _showConnectDialog method and mock data import - Update husband_settings_screen: show 'Partner Settings' with linked partner name when connected - Add SharingSettingsScreen: Pad Supplies toggle (disabled when pad tracking off), Intimacy always enabled - Add CORS OPTIONS handler to backend server - Add _ensureServerRegistration for reliable partner linking - Add copy button to Invite Partner dialog - Dynamic base URL for web (uses window.location.hostname)
This commit is contained in:
@@ -123,13 +123,14 @@ class UserProfileAdapter extends TypeAdapter<UserProfile> {
|
||||
husbandAccentColor:
|
||||
fields[55] == null ? '0xFF1A3A5C' : fields[55] as String,
|
||||
useExampleData: fields[56] == null ? false : fields[56] as bool,
|
||||
partnerId: fields[57] as String?,
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
void write(BinaryWriter writer, UserProfile obj) {
|
||||
writer
|
||||
..writeByte(56)
|
||||
..writeByte(57)
|
||||
..writeByte(0)
|
||||
..write(obj.id)
|
||||
..writeByte(1)
|
||||
@@ -241,7 +242,9 @@ class UserProfileAdapter extends TypeAdapter<UserProfile> {
|
||||
..writeByte(55)
|
||||
..write(obj.husbandAccentColor)
|
||||
..writeByte(56)
|
||||
..write(obj.useExampleData);
|
||||
..write(obj.useExampleData)
|
||||
..writeByte(57)
|
||||
..write(obj.partnerId);
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user