fix bug when after search button "To top" is shown when list was already at top
This commit is contained in:
parent
28c448046f
commit
95ada5e1a7
@ -91,6 +91,9 @@ class _BodyState extends State<Body> {
|
||||
placeholder: context.locale.search,
|
||||
controller: searchController,
|
||||
onChanged: (search) {
|
||||
context
|
||||
.read<HomeBloc>()
|
||||
.add(HomeShowButtonToTopEvent(isShown: false));
|
||||
Debounce.run(() => context
|
||||
.read<HomeBloc>()
|
||||
.add(HomeLoadDataEvent(search: search)));
|
||||
|
Loading…
Reference in New Issue
Block a user