feat: condivisione piano pasti via QR code

Porta la funzionalità QR code dalla versione Vue a Flutter.

Condividi: pulsante in fondo alla tab Pasti (attivo solo con piano
non vuoto) → bottom sheet con QR code generato da qr_flutter.
Payload: { "v": 1, "meals": { ... } }, limite 2953 byte.

Ricevi: pulsante sempre visibile → QrScanPage full-screen con
fotocamera via mobile_scanner, cornice di mira, validazione
struttura JSON e importazione via MealPlannerProvider.importPlan().

Nuovi package: qr_flutter ^4.1.0, mobile_scanner ^5.0.0

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-17 23:09:16 +02:00
parent 404a5f44ac
commit cebeaf889a
5 changed files with 255 additions and 0 deletions
+2
View File
@@ -11,6 +11,8 @@ dependencies:
sdk: flutter
provider: ^6.1.2
shared_preferences: ^2.3.2
qr_flutter: ^4.1.0
mobile_scanner: ^5.0.0
dev_dependencies:
flutter_test: