From 95ada5e1a7644854c52d7a6eae2fd22854f50a8f Mon Sep 17 00:00:00 2001 From: shirotame Date: Sun, 6 Oct 2024 18:44:13 +0400 Subject: [PATCH] fix bug when after search button "To top" is shown when list was already at top --- lib/views/home_page/home_page.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/views/home_page/home_page.dart b/lib/views/home_page/home_page.dart index 3286fa6..6369f91 100644 --- a/lib/views/home_page/home_page.dart +++ b/lib/views/home_page/home_page.dart @@ -91,6 +91,9 @@ class _BodyState extends State { placeholder: context.locale.search, controller: searchController, onChanged: (search) { + context + .read() + .add(HomeShowButtonToTopEvent(isShown: false)); Debounce.run(() => context .read() .add(HomeLoadDataEvent(search: search)));