- Rename catalog: ingredient/* → product/* (canonical_name, barcode, nutrition per 100g)
- Rename pantry: product/* → userproduct/* (user-owned items with expiry)
- Squash migrations into single 001_initial_schema.sql (clean-db baseline)
- product_categories: add English canonical name column; fix COALESCE in queries
- Remove product_translations: product names are stored in their original language
- Add default_unit_name to product API responses via unit_translations JOIN
- Add cmd/importoff: bulk import from OpenFoodFacts JSONL dump (COPY + ON CONFLICT)
- Diary: support product_id entries alongside dish_id (CHECK num_nonnulls = 1)
- Home: getLoggedCalories joins both recipes and catalog products
- Flutter: rename models/providers/services to match backend rename
- Flutter: add barcode scan flow for diary (mobile_scanner, product_portion_sheet)
- Flutter: localise 6 new keys across 12 languages (barcode scan, portion weight)
- Routes: GET /products/search, GET /products/barcode/{barcode}, /user-products
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
60 lines
926 B
YAML
60 lines
926 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
|
|
flutter_localizations:
|
|
sdk: flutter
|
|
intl: ^0.20.1
|
|
|
|
cupertino_icons: ^1.0.8
|
|
|
|
# Navigation
|
|
go_router: ^14.0.0
|
|
|
|
# State management
|
|
flutter_riverpod: ^2.5.0
|
|
|
|
# Network
|
|
dio: ^5.4.0
|
|
http: ^1.2.0
|
|
google_fonts: ^6.2.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
|
|
shared_preferences: ^2.3.0
|
|
|
|
# Serialization
|
|
json_annotation: ^4.9.0
|
|
|
|
# UI
|
|
cached_network_image: ^3.3.0
|
|
|
|
# Camera / gallery
|
|
image_picker: ^1.1.0
|
|
mobile_scanner: ^6.0.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
|
|
generate: true
|