How tnruok/vanity_tracker works
Vanity Tracker is a Flutter app for managing a personal cosmetics shelf. Users sign in or continue as guests, add products by scanning a barcode or entering details, track opened and expiry dates, and review active products, empties, and spending analytics. The README documents local-first persistence with optional Firebase sync, barcode lookup fallbacks, and scheduled local reminders. The graph follows those documented responsibilities; Dart implementation excerpts were not provided, so relationships are cited to the README rather than treated as source-verified calls.
Main entry points: main_navigation_scaffold.dart App navigation · add_product_screen.dart Product entry · vanity_provider.dart Shelf management · vanity_dashboard_screen.dart Vanity dashboard
Components 24
App and access
- App initialization
lib/main.dart - Login and signup
lib/screens/auth - Auth state
lib/providers/auth_provider.dart - Authentication
lib/services/auth_service.dart - App navigation
lib/screens/main_navigation_scaffold.dart
Product intake
- Product entry
lib/screens/product/add_product_screen.dart - Barcode lookup
lib/services/product_lookup_service.dart - Product details
lib/models/product_model.dart - Duplicate warning
lib/widgets/duplicate_alert_dialog.dart
Shelf lifecycle
- Vanity dashboard
lib/screens/dashboard/vanity_dashboard_screen.dart - Shelf management
lib/providers/vanity_provider.dart - Shelf item lifecycle
lib/models/vanity_item_model.dart - Product details and edit
lib/screens/product - Shelf item display
lib/widgets/vanity_item_card.dart
History and insights
- Empties journal
lib/screens/history/empties_screen.dart - Repurchase ratings
lib/widgets/repurchase_dialog.dart - Budget analytics
lib/screens/stats/stats_screen.dart
Persistence and reminders
- Expiry reminders
lib/services/notification_service.dart - Reminder payload
lib/models/notification_model.dart - Local and cloud data
lib/services/database_service.dart
Other components
- User
- Firebase services
- Product databases
- Local notifications
Connections 27
- User → App initialization: opens
README.md - App initialization → Auth state: initializes auth
README.md - User → Login and signup: signs in
README.md - Login and signup → Auth state: updates auth state
README.md - Auth state → Authentication: uses
README.md - Authentication → Firebase services: authenticates
README.md - User → App navigation: navigates
README.md - App navigation → Product entry: opens intake
README.md - User → Product entry: scans or enters
README.md - Product entry → Barcode lookup: looks up barcode
README.md - Barcode lookup → Product databases: queries fallbacks
README.md - Product entry → Product details: populates details
README.md - Product entry → Duplicate warning: warns on duplicate
README.md - App navigation → Vanity dashboard: opens shelf
README.md - Vanity dashboard → Shelf management: manages shelf
README.md - Shelf management → Shelf item lifecycle: tracks lifecycle
README.md - Shelf management → Local and cloud data: persists shelf
README.md - Local and cloud data → Firebase services: syncs optionally
README.md - Vanity dashboard → Product details and edit: opens item details
README.md - Vanity dashboard → Shelf item display: displays items
README.md - Shelf management → Expiry reminders: schedules expiry alerts
README.md - Expiry reminders → Reminder payload: uses payload
README.md - Expiry reminders → Local notifications: schedules reminders
README.md - App navigation → Empties journal: opens archive
README.md - Empties journal → Repurchase ratings: records ratings
README.md - App navigation → Budget analytics: opens analytics
README.md - Budget analytics → Shelf management: summarizes shelf