StickyHeader
The StickyHeader widget keeps a header visible while users scroll through content below it. For example, a search bar can stay in view while users browse a list of results.
The StickyHeader widget has two sections:
- StickyHeader Header: Holds the widget that remains visible while the content scrolls, such as a search bar or title.
- StickyHeader Content: Holds the content below the header, such as a ListView or GridView.
Adding a StickyHeader
- Add a Column or ListView to the page. Turn on Primary for this Column or ListView so it handles scrolling. If you use a Column, also turn on Scrollable.
- From Base Elements, add a StickyHeader inside that Column or ListView.
- Add the widget you want to keep visible inside StickyHeader Header.
- Add the content that users will scroll through inside StickyHeader Content. You can use widgets such as a ListView or GridView to display a collection of items.
The following demo shows a search bar above a user list:
Last updated on