LifeMate — Personal, Family & Learning Companion
docs/offline-data-rescue-options
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
| 1 | import 'package:flutter/foundation.dart'; |
| 2 | import 'package:flutter/material.dart'; |
| 3 | |
| 4 | import 'standalone/app.dart'; |
| 5 | import 'standalone/reminder_coordinator.dart'; |
| 6 | import 'standalone/reminder_settings.dart'; |
| 7 | import 'standalone/store.dart'; |
| 8 | |
| 9 | /// Separate debug-only device edition. No HTTP/auth/runtime-URL imports. |
| 10 | void main() { |
| 11 | WidgetsFlutterBinding.ensureInitialized(); |
| 12 | if (!const bool.fromEnvironment('LIFEGUIDE_STANDALONE') || |
| 13 | !kDebugMode || |
| 14 | kIsWeb || |
| 15 | defaultTargetPlatform != TargetPlatform.android) { |
| 16 | runApp(const MaterialApp( |
| 17 | home: Scaffold( |
| 18 | body: Center( |
| 19 | child: Text( |
| 20 | 'این ورودی فقط برای بستهٔ آزمایشی لایفگاید شخصی است.'))))); |
| 21 | return; |
| 22 | } |
| 23 | final reminders = StandaloneReminderCoordinator(); |
| 24 | runApp(StandaloneApp( |
| 25 | openStore: () async { |
| 26 | StandaloneStore store; |
| 27 | try { |
| 28 | store = await StandaloneStore.open(); |
| 29 | } catch (_) { |
| 30 | try { |
| 31 | await reminders.cancelOnStorageFailure(); |
| 32 | } catch (_) {/* No success claimed. */} |
| 33 | rethrow; |
| 34 | } |
| 35 | try { |
| 36 | await reminders.refresh(store); |
| 37 | } catch (_) {/* Planner remains usable; settings shows the failure. */} |
| 38 | return store; |
| 39 | }, |
| 40 | onBeforePlansChange: reminders.beforeChange, |
| 41 | onPlansChanged: reminders.afterChange, |
| 42 | onResumed: reminders.refresh, |
| 43 | reminderSettingsBuilder: (context, store) => |
| 44 | StandaloneReminderSettings(store: store, coordinator: reminders), |
| 45 | )); |
| 46 | } |