Improve app UX by adding animated transitions for screen switches
and introducing a persisted guest onboarding flow.
- Add AnimatedSwitcher-based fade+slide transitions for screens and
tab switches for smoother navigation.
- Persist a 'user_mode' SharedPreferences key and provide guest
helpers to mark users as guest and influence routing.
- Update SignInScreen continue-as-guest action to set onboarding and
guest flags and navigate to MainScreen.
- Normalize locales in LocaleProvider to language-only values and
persist normalized language codes to ensure compatibility with
Flutter localization delegates.
- Replace Row with Wrap in ReportCard to improve spacing and
responsiveness.
No breaking changes
- integrate flutter_localizations and delegates in MaterialApp
- use language-only supportedLocales; add resolution callback
- initialize I18n on app start and when switching language
- localize capture screen prompt via I18n.t
- schedule map centering via postFrame to avoid race conditions
- add flutter_localizations to pubspec
Introduce StartRouter to gate first run with onboarding. Persist state in
SharedPreferences (onboarded_v1). Add WelcomeScreen, a 3-step
OnboardingFlow, and a SignInScreen placeholder with Apple/Google buttons
and "coming soon" toasts plus continue as guest.
Apply new AppThemes (light/dark, high-contrast option) built from design
tokens and wire into MaterialApp (theme/darkTheme, system mode). Add
ThemeProvider to persist ThemeMode and high-contrast flags (not yet
hooked into the tree).
Add EN/MS i18n strings for welcome, onboarding, auth, and CTAs. Include
assets/tokens/design-tokens.json for design tooling parity.