Backend: - gemini/client.go: refactor to shared callGroq transport; add generateVisionContent using llama-3.2-11b-vision-preview model - gemini/recognition.go: RecognizeReceipt, RecognizeProducts, RecognizeDish (vision), ClassifyIngredient (text); shared parseJSON helper - ingredient/repository.go: add FuzzyMatch (wraps Search, returns best hit) - recognition/handler.go: POST /ai/recognize-receipt, /ai/recognize-products, /ai/recognize-dish; enrichItems with fuzzy match + AI classify fallback; parallel multi-image processing with deduplication - server.go + main.go: wire recognition handler under /ai routes Flutter: - pubspec.yaml: add image_picker ^1.1.0 - AndroidManifest.xml: add CAMERA and READ_EXTERNAL_STORAGE permissions - Info.plist: add NSCameraUsageDescription and NSPhotoLibraryUsageDescription - recognition_service.dart: RecognitionService wrapping /ai/* endpoints; RecognizedItem, ReceiptResult, DishResult models - scan_screen.dart: mode selector (receipt / products / dish / manual); image source picker; loading overlay; navigates to confirm or dish screen - recognition_confirm_screen.dart: editable list of recognized items; inline qty/unit editing; swipe-to-delete; batch-add to pantry - dish_result_screen.dart: dish name, KBZHU breakdown, similar dishes chips - app_router.dart: /scan, /scan/confirm, /scan/dish routes (no bottom nav) - products_screen.dart: FAB now shows bottom sheet with Manual / Scan options Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
52 lines
759 B
YAML
52 lines
759 B
YAML
name: food_ai
|
|
description: "FoodAI - AI-powered food management"
|
|
publish_to: 'none'
|
|
version: 1.0.0+1
|
|
|
|
environment:
|
|
sdk: ^3.9.2
|
|
|
|
dependencies:
|
|
flutter:
|
|
sdk: flutter
|
|
|
|
cupertino_icons: ^1.0.8
|
|
|
|
# Navigation
|
|
go_router: ^14.0.0
|
|
|
|
# State management
|
|
flutter_riverpod: ^2.5.0
|
|
|
|
# Network
|
|
dio: ^5.4.0
|
|
|
|
# Firebase
|
|
firebase_core: ^3.0.0
|
|
firebase_auth: ^5.0.0
|
|
google_sign_in: ^6.2.0
|
|
|
|
# Storage
|
|
flutter_secure_storage: ^9.2.0
|
|
|
|
# Serialization
|
|
json_annotation: ^4.9.0
|
|
|
|
# UI
|
|
cached_network_image: ^3.3.0
|
|
|
|
# Camera / gallery
|
|
image_picker: ^1.1.0
|
|
|
|
dev_dependencies:
|
|
flutter_test:
|
|
sdk: flutter
|
|
|
|
flutter_lints: ^5.0.0
|
|
json_serializable: ^6.8.0
|
|
build_runner: ^2.4.0
|
|
mockito: ^5.4.0
|
|
|
|
flutter:
|
|
uses-material-design: true
|