How could we achive this UI in flutter?
The top row buttons hide when scroll up and visible when scroll down and the listview is wrap in a card widget.
How could we achive this UI in flutter?
The top row buttons hide when scroll up and visible when scroll down and the listview is wrap in a card widget.
2
Answers
You can archive a header that hides when the user scrolls down and shows when they scroll up by using a combination of the SliverAppBar and CustomScrollView
Here’s a basic example :
You can achieve this behavior using CustomScrollView and SliverAppBar. Use the top one as pinned as a toolbar and for the Row Buttons, you can use SliverAppBar without pinning.
Here is the example code: