feat: create AddProductModal for adding and editing diary product portions with glossary search functionality.

This commit is contained in:
mso7nueh
2026-01-19 16:06:19 +03:00
parent d3c8034b8f
commit 6ccfcdedda

View File

@@ -166,7 +166,7 @@ class _AddProductModalState extends State<AddProductModal> {
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];
}