@davoodmehraban89 / LifeMate / commits / d079843
Fork 0

LifeMate — Personal, Family & Learning Companion

docs: select Flutter frontend baseline

davoodmehraban89 committed Oct 5, 2026 at 06:27 UTC d079843b7191fb93d4aed438844371f720906f3e
1 file changed +22
docs/decisions/0004-frontend-flutter.md new
+22
@@ -0,0 +1,22 @@
1 +# ADR-0004 — Frontend Baseline: Flutter
2 +
3 +- **Status:** Accepted for Phase 2 baseline
4 +- **Date:** 2026-10-05
5 +
6 +## Decision
7 +Use **Flutter** as the initial client framework for Android and the app-centric responsive Web/PWA surface, with platform-specific web integration where standards-based PWA behavior requires it.
8 +
9 +## Why
10 +LifeMate is an app-centric experience rather than a document/SEO site. A shared Dart/Flutter product surface reduces divergence between Android and PWA while preserving high visual fidelity and RTL control. Official Flutter guidance identifies PWAs, SPAs and existing mobile-style applications as suitable Flutter web scenarios.
11 +
12 +## Important constraint
13 +Flutter no longer generates/manages an application caching service worker by default. Offline/PWA caching must therefore be an explicit web concern using a custom standards-based service worker/Workbox or equivalent, not an assumed framework feature.
14 +
15 +## Boundaries
16 +- Do not force every web capability through Flutter abstractions. Manifest, install UX, Web Push/service worker integration, safe-area/platform metadata and browser-specific capability detection may live in `web/` integration code.
17 +- Do not promise background behavior unsupported by iOS/PWA.
18 +- Native iOS packaging remains a future distribution option because Flutter can target iOS, but initial iPhone distribution is PWA.
19 +- Revisit this ADR only if a Phase 2 spike proves a blocking requirement (not aesthetic preference) cannot be delivered reliably.
20 +
21 +## Alternatives considered
22 +Separate Kotlin Android + React/Next PWA offers maximum platform specialization but creates two primary UI codebases before product-market validation. React Native does not remove the need for a separate web/PWA strategy as cleanly for this product. Both remain fallback options if a verified blocker appears.
\ No newline at end of file