scroll_sync_tabs 0.1.0 copy "scroll_sync_tabs: ^0.1.0" to clipboard
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, with scrollTo/jumpTo, runtime updateItems, a mutable pinnedHeaderExtent, and a two-phase (estimate, then correct) scroll for sections whose anchors are not yet mounted.
  • ScrollTabBar<T> forwards every TabBar styling parameter, with a .builder constructor for raw Tab widgets, leading/trailing slots, and a static ScrollTabBar.sliver<T>(...) helper that wraps the strip in a pinned SliverPersistentHeader.
  • ScrollTabAnchor marks a section for a controller without affecting layout.
5
likes
160
points
33
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Keep a TabBar and a scrollable list of sections in sync both ways - scrolling selects the tab, tapping a tab scrolls to the section.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on scroll_sync_tabs