From a1b25bf3a73bfe44ba094e4dc3d03fe2e3c2ba67 Mon Sep 17 00:00:00 2001 From: Ponshu Developer Date: Sat, 31 Jan 2026 00:06:48 +0900 Subject: [PATCH] fix: Add missing detail fields to HiddenSpecs initialization MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixed bug where AI analysis detail fields (type, alcoholContent, polishingRatio, sakeMeterValue, riceVariety, yeast, manufacturingYearMonth) were not being saved to HiddenSpecs, causing them to display as "-" in the UI. Root cause: camera_screen.dart was only passing 3 fields (description, tasteStats, flavorTags) to HiddenSpecs constructor, missing 7 detail fields that Gemini API was successfully returning. Verified: All detail fields now display correctly after AI analysis. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- lib/screens/camera_screen.dart | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/screens/camera_screen.dart b/lib/screens/camera_screen.dart index f24b142..d7ed7b8 100644 --- a/lib/screens/camera_screen.dart +++ b/lib/screens/camera_screen.dart @@ -357,6 +357,13 @@ class _CameraScreenState extends ConsumerState with SingleTickerPr description: result.description, tasteStats: result.tasteStats, flavorTags: result.flavorTags, + type: result.type, + alcoholContent: result.alcoholContent, + polishingRatio: result.polishingRatio, + sakeMeterValue: result.sakeMeterValue, + riceVariety: result.riceVariety, + yeast: result.yeast, + manufacturingYearMonth: result.manufacturingYearMonth, ), metadata: Metadata( createdAt: DateTime.now(),