FabScrollBehavior
Collapses extended FAB labels when content scrolls forward and expands them on reverse scrolling. Only consumed motion counts, so overscroll at either end does not change expanded.
Attach nestedScrollConnection to content and pass expanded to ToolkitFabColumn. An app bar that collapses or hides above the content takes the scroll before the content sees it, so attach its connection through observing too: on a page short enough that the bar takes the whole swipe, the buttons still fold.
Functions
Link copied to clipboard
connection, unchanged, with the scroll it consumes also folding and unfolding the buttons.