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()