From 6a98bcb49262ea68ac5fb973e1e36fbfb6777d89 Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 2 Dec 2024 15:36:43 +0300 Subject: [PATCH] =?UTF-8?q?feat(diary):=20=D0=9F=D0=B5=D1=80=D0=B5=D0=B2?= =?UTF-8?q?=D0=BE=D0=B4=20=D1=84=D0=BE=D0=BA=D1=83=D1=81=D0=B0=20=D0=BD?= =?UTF-8?q?=D0=B0=20=D0=BA=D0=BE=D0=BB=D0=B8=D1=87=D0=B5=D1=81=D1=82=D0=B2?= =?UTF-8?q?=D0=BE=20=D0=BF=D1=80=D0=B8=20=D0=B2=D1=8B=D0=B1=D0=BE=D1=80?= =?UTF-8?q?=D0=B5=20=D0=B8=D0=B7=20=D1=81=D0=BF=D0=B8=D1=81=D0=BA=D0=B0=20?= =?UTF-8?q?=D0=B3=D0=BB=D0=BE=D1=81=D1=81=D0=B0=D1=80=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/features/diary/presentation/widgets/add_product_modal.dart | 3 ++- lib/features/profile/services/profile_service.dart | 1 + 2 files changed, 3 insertions(+), 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 6dfbc53c..65852357 100644 --- a/lib/features/diary/presentation/widgets/add_product_modal.dart +++ b/lib/features/diary/presentation/widgets/add_product_modal.dart @@ -86,7 +86,7 @@ class _AddProductModalState extends State { hintText: 'Введите название продукта/блюда', onChanged: (query) { EasyDebounce.debounce( - 'client-typing', + 'glossary-search', Duration(milliseconds: 250), () async { glossariesList = await widget.diaryCubit.getGlossaryListByQuery(query); @@ -133,6 +133,7 @@ class _AddProductModalState extends State { }); glossariesList = await widget.diaryCubit.getGlossaryListByQuery(glossariesList[i].name); setState(() {}); + FocusManager.instance.primaryFocus?.nextFocus(); }, shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(20), diff --git a/lib/features/profile/services/profile_service.dart b/lib/features/profile/services/profile_service.dart index 1665d9e0..7d9f6480 100644 --- a/lib/features/profile/services/profile_service.dart +++ b/lib/features/profile/services/profile_service.dart @@ -5,6 +5,7 @@ import 'package:eatvio_app/features/profile/models/profile_model.dart'; import 'package:eatvio_app/features/profile/models/sub_model.dart'; import 'package:eatvio_app/features/profile/models/weight_model.dart'; import 'package:retrofit/retrofit.dart'; + part 'profile_service.g.dart'; @RestApi()