Skip to content

Onboarding

Source: pharmanet/lib/features/onboarding/

Pages

Page File Description
OnboardingPage features/onboarding/presentation/pages/onboarding_page.dart Introduction screens with introduction_screen package

Service

Service File Description
OnboardingService core/services/onboarding_service.dart Tracks whether onboarding has been shown via SharedPreferences

Flow

  1. On cold start, SplashPage checks hasSeenOnboarding()
  2. If false → show OnboardingPage (3-4 intro screens with smooth page indicator)
  3. After completion → setOnboardingSeen() (persisted to SharedPreferences)
  4. Next cold start → skip onboarding, go directly to auth or home

Screens

The onboarding uses introduction_screen package with: - Illustrations (via SVG assets in assets/) - Title + subtitle per screen - Skip button, next/done navigation - Smooth page indicator