fix: Add missing detail fields to HiddenSpecs initialization

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 <noreply@anthropic.com>
This commit is contained in:
Ponshu Developer 2026-01-31 00:06:48 +09:00
parent 246826eeca
commit a1b25bf3a7
1 changed files with 7 additions and 0 deletions

View File

@ -357,6 +357,13 @@ class _CameraScreenState extends ConsumerState<CameraScreen> with SingleTickerPr
description: result.description, description: result.description,
tasteStats: result.tasteStats, tasteStats: result.tasteStats,
flavorTags: result.flavorTags, 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( metadata: Metadata(
createdAt: DateTime.now(), createdAt: DateTime.now(),