I have this IconButton named 'filterIconButton' and this ListView that displays the query results.
When I press the 'filterIconButton' button, this BottomSheet opens:
What I need to do is, when I press a button on the BottomSheet (filterIconButton), change the filtering type in the ListView of my other page.
How could I achieve this?
Taking into consideration that the filtering types are as follows:
- Sort A to Z
- Sort Z to A
- Sort by most recent
- Sort by oldest