LifeMate — Personal, Family & Learning Companion

feat/learning-content-operations
chore/phase1-repository-cleanup deploy/stable-web-apk deployment-static design/mobile-accessibility-v2 design/mobile-navigation-review docs/child-education-access-decision docs/offline-data-rescue-options docs/owner-guide-and-delivery-plan docs/phase1-policy-options docs/public-review-live-2026-10-15 feat/aparat-learning-library feat/child-device-safety feat/child-identity-schema feat/flutter-mobile-navigation feat/learning-content-operations feat/local-signing-preflight feat/online-family-stage0 feat/personal-encrypted-recovery feat/private-planner-series-api feat/public-review-page feat/standalone-weekly-planner feat/weekly-planner-android final-feature-1/iran-family-school fix/auth-abuse-expiry-safety fix/auth-expiry-after-lock fix/backend-request-safety fix/lifeguide-bootstrap-naming-ci fix/lifeguide-pages-qa-base-preflight fix/lifeguide-qa-pages-env-deployment fix/local-task-persistence fix/managed-child-session-boundary fix/personal-jalali-dates fix/personal-notification-controls fix/personal-upgrade-delivery-guard fix/sms-approval-gates fix/study-duration-display infra/cloudflare-neon-migration infra/lifeguide-cloudflare-qa infra/lifeguide-github-pages-qa infra/lifeguide-supabase-qa main phase-1/foundation-completion phase-2/product-foundation-identity phase-3/planner-school-family-core phase-4/ai-learning-wellbeing phase-5/hardening-observability-release test/android-reminder-acceptance test/personal-notification-settings test/personal-recovery-acceptance test/role-entry-apk
md 1.8 KB

ADR-0007 — Frontend Baseline: Flutter

  • Status: Accepted for Phase 2 baseline
  • Date: 2026-10-05

Decision

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.

Why

LifeGuide 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.

Important constraint

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.

Boundaries

  • 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.
  • Do not promise background behavior unsupported by iOS/PWA.
  • Native iOS packaging remains a future distribution option because Flutter can target iOS, but initial iPhone distribution is PWA.
  • Revisit this ADR only if a Phase 2 spike proves a blocking requirement (not aesthetic preference) cannot be delivered reliably.

Alternatives considered

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.