How airuxph/freshkeep works
FreshKeep is an offline Flutter grocery-inventory app. The main workflow is entering grocery batches, storing them locally, and managing stock and printed-date information; dashboard, waste reporting, guidance, reminders, backup, photos, and label scanning are complementary capabilities. The graph follows documented user flows and capabilities; implementation-level connections are limited because the sampled Dart source was not provided.
Main entry points: app_shell.dart App navigation · add_groceries_dialog.dart Grocery entry · scan_label_screen.dart Label scanner · backup_screen.dart Backup interface
Components 23
Inventory & batches
- App navigation
lib/app_shell.dart - Inventory view
lib/inventory_screen.dart - Grocery entry
lib/add_groceries_dialog.dart - Batch details
lib/batch_details_screen.dart - Stock actions
lib/stock_action_dialog.dart - Inventory queries
lib/domain/inventory_query.dart - Local inventory store
lib/data/inventory_database.dart
Guidance & reports
- Dashboard
lib/domain/dashboard_summary.dart - Waste reporting
lib/report_screen.dart - Storage guidance
lib/guidance_screen.dart - Guidance catalog
lib/data/guidance_catalog.dart
Device features
- Reminder settings
lib/reminder_screen.dart - Reminder planning
lib/reminders/reminder_controller.dart - Device notifications
lib/reminders/notification_service.dart - Food photos
lib/widgets/photo_picker/pick_food_photo_from_source.dart - Label scanner
lib/ocr/scan_label_screen.dart - On-device OCR
lib/ocr/ocr_service.dart
Backup & restore
- Backup interface
lib/backup_screen.dart - Backup export
lib/data/backup/export_database_backup.dart - Backup import
lib/data/backup/import_database_backup.dart - Local JSON file
lib/backup/backup_file_io.dart
Other components
- Grocery keeper
- Device / OS
Connections 26
- Grocery keeper → App navigation: opens app
README.md - App navigation → Inventory view: navigates to
README.md - Grocery keeper → Grocery entry: enters groceries
README.md - Grocery entry → Local inventory store: saves batches
README.md - Inventory view → Inventory queries: filters inventory
README.md - Inventory queries → Local inventory store: queries records
README.md - Grocery keeper → Batch details: opens batch
README.md - Batch details → Stock actions: edits stock
README.md - Stock actions → Local inventory store: records action
README.md - App navigation → Dashboard: shows dashboard
README.md - App navigation → Waste reporting: opens waste
README.md - App navigation → Storage guidance: opens guidance
README.md - Storage guidance → Guidance catalog: browses sources
README.md - App navigation → Reminder settings: opens reminders
README.md - Reminder settings → Reminder planning: saves settings
README.md - Reminder planning → Device notifications: schedules alerts
README.md - Grocery entry → Food photos: adds photo
README.md - Grocery keeper → Label scanner: scans label
README.md - Label scanner → On-device OCR: recognizes text
README.md - Label scanner → Grocery entry: creates review draft
README.md - App navigation → Backup interface: opens backup
README.md - Backup interface → Backup export: exports data
README.md - Backup export → Local JSON file: writes JSON
README.md - Backup interface → Backup import: imports backup
README.md - Local JSON file → Backup import: provides JSON
README.md - Device / OS → Device notifications: delivers alerts
README.md