scroll_sync_tabs 0.1.0
scroll_sync_tabs: ^0.1.0 copied to clipboard
Keep a TabBar and a scrollable list of sections in sync both ways - scrolling selects the tab, tapping a tab scrolls to the section.
0.1.0 #
- Initial release.
ScrollTabController<T>keeps a tab strip and a scrollable section list in sync in both directions, withscrollTo/jumpTo, runtimeupdateItems, a mutablepinnedHeaderExtent, and a two-phase (estimate, then correct) scroll for sections whose anchors are not yet mounted.ScrollTabBar<T>forwards everyTabBarstyling parameter, with a.builderconstructor for rawTabwidgets,leading/trailingslots, and a staticScrollTabBar.sliver<T>(...)helper that wraps the strip in a pinnedSliverPersistentHeader.ScrollTabAnchormarks a section for a controller without affecting layout.