From 6ccfcdedda6ba87bb88a01070c07b77e6c440e22 Mon Sep 17 00:00:00 2001 From: mso7nueh Date: Mon, 19 Jan 2026 16:06:19 +0300 Subject: [PATCH] feat: create AddProductModal for adding and editing diary product portions with glossary search functionality. --- lib/features/diary/presentation/widgets/add_product_modal.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/features/diary/presentation/widgets/add_product_modal.dart b/lib/features/diary/presentation/widgets/add_product_modal.dart index 335fdb33..c3d9067d 100644 --- a/lib/features/diary/presentation/widgets/add_product_modal.dart +++ b/lib/features/diary/presentation/widgets/add_product_modal.dart @@ -166,7 +166,7 @@ class _AddProductModalState extends State { InkWell( onTap: () { // Автоматически выбираем первый элемент, если текст точно совпадает - if (selectedGlossary == null && glossariesList.isNotEmpty && productNameController.text.trim() == glossariesList[0].name) { + if (selectedGlossary == null && glossariesList.isNotEmpty && productNameController.text.trim().toLowerCase() == glossariesList[0].name.toLowerCase()) { selectedGlossary = glossariesList[0]; }