@davoodmehraban89 / LifeMate / commits / f777779
Fork 0

LifeMate — Personal, Family & Learning Companion

feat: send invited profile theme preference

davoodmehraban89 committed Oct 5, 2026 at 07:50 UTC f77777927feeda379097c3d82415a3fc99acc59e
1 file changed +7 -1
apps/lifemate/lib/api.dart
+7 -1
@@ -28,6 +28,7 @@ abstract class IdentityApi {
28 required String familyId,
29 required String email,
30 required String role,
31 + String? themePreference,
32 });
33 Future<void> acceptInvitation(String token);
34 }
@@ -206,12 +207,17 @@ class HttpIdentityApi implements IdentityApi {
207 required String familyId,
208 required String email,
209 required String role,
210 + String? themePreference,
211 }) async {
212 await _json(
213 'POST',
214 '/v1/families/$familyId/invitations',
215 auth: true,
214 - body: {'email': email, 'role': role},
216 + body: {
217 + 'email': email,
218 + 'role': role,
219 + if (themePreference != null) 'themePreference': themePreference,
220 + },
221 );
222 }
223