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¶
- On cold start,
SplashPagecheckshasSeenOnboarding() - If
false→ showOnboardingPage(3-4 intro screens with smooth page indicator) - After completion →
setOnboardingSeen()(persisted to SharedPreferences) - 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
Related¶
- Authentication — Next step after onboarding