Skip to content

Profile & Security

Source: pharmanet/lib/features/profile/

Pages

Page File Description
ProfilePage features/profile/presentation/pages/profile_page.dart Main profile screen
EditProfilePage features/profile/presentation/pages/edit_profile_page.dart Edit name, email, phone
ChangePasswordPage features/profile/presentation/pages/change_password_page.dart Password change
SecurityPage features/profile/presentation/pages/security_page.dart 2FA, app lock, biometrics
ShippingAddressPage features/profile/presentation/pages/shipping_address_page.dart Address list
AddAddressPage features/profile/presentation/pages/add_address_page.dart New address form
BookmarksPage features/profile/presentation/pages/bookmarks_page.dart Saved bookmarks
HistoryPage features/profile/presentation/pages/history_page.dart Order/recent activity
PaymentMethodsPage features/profile/presentation/pages/payment_methods_page.dart Saved payment methods
AboutUsPage features/profile/presentation/pages/about_us_page.dart App info
HelpCenterPage features/profile/presentation/pages/help_center_page.dart Support & FAQ
PrivacyPolicyPage features/profile/presentation/pages/privacy_policy_page.dart Privacy policy
DeviceInfoPage features/profile/presentation/pages/device_info_page.dart Device details
LoginActivityPage features/profile/presentation/pages/login_activity_page.dart Session history
BlockedContactsPage features/profile/presentation/pages/blocked_contacts_page.dart Blocked users
CouponsPage features/profile/presentation/pages/coupons_page.dart Coupons (placeholder)
LocationSelectionPage features/profile/presentation/pages/location_selection_page.dart Manual location picker

Providers

Provider Type Description
profileProvider StateNotifierProvider<AsyncValue<Profile?>> User profile data
securitySettingsProvider StateNotifierProvider<AsyncValue<SecuritySettings?>> Security preferences
appLockProvider StateNotifierProvider<AppLockState> App lock PIN state
addressesProvider AsyncNotifierProvider<List<Address>> Saved addresses
selectedAddressProvider NotifierProvider<Address?> Selected address

Security Features

App Lock

Feature File Description
PIN lock app_lock_provider.dart 4-6 digit PIN
Biometric local_auth package Fingerprint / Face ID
Lock timeout app_lock_sheet.dart Auto-lock after inactivity

Other Security Settings

Setting Provider Description
Biometric auth securitySettingsProvider Toggle fingerprint/Face ID
Two-factor auth securitySettingsProvider 2FA via email/SMS
SMS verification securitySettingsProvider Verify actions via SMS
Hide order history securitySettingsProvider Privacy toggle
Data sharing securitySettingsProvider Analytics opt-out

Profile Model

Source: pharmanet/lib/core/models/profile_model.dart

Fields include: id, email, firstName, lastName, phone, role, profilePictureUrl, fcmToken, biometricEnabled, appLockPin, twoFactorEnabled, and pharmacy relationship Seller?.