Skip to content
pubscout

vertical_scrollable_tabview

0.1.2, released 9 months ago by an unverified publisher

A Flutter widget that synchronizes a ScrollView and a custom tab view.

WASM-ready
$ flutter pub add vertical_scrollable_tabview
Source repository

What it does

Synchronizes a vertical ScrollView with a custom tab view so that scrolling updates the active tab index, and tapping tabs scrolls the list to the corresponding section. It exposes both Scrollbar and CustomScrollView parameters.

AI-written summary of version 0.1.2, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need a settings or catalog screen with category headers that automatically highlight the corresponding tab as the user scrolls.
  • You want to combine a SliverAppBar with a TabBar that tracks scroll position.

Skip it when

  • You only need a standard horizontal tab view without scroll synchronization.
  • You are using a non-scrollable layout.

Strengths

  • Synchronizes tab views and scroll positions out of the box.
  • Exposes standard Scrollbar and CustomScrollView parameters.
  • Supports multiple platforms including Android, iOS, and Web.

Weaknesses

  • Requires explicit management of both TabController and AutoScrollController.
  • List items must be provided as a List<dynamic> type.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
2

Requires adding vertical_scrollable_tabview and scroll_to_index to pubspec.yaml.

VerticalScrollableTabView(
    autoScrollController: autoScrollController,
    tabController: tabController,
    listItemData: data,
    verticalScrollPosition: VerticalScrollPosition.begin,
    eachItemChild: (object, index) => CategorySection(category: object as Category),
    slivers: [
      SliverAppBar(
        bottom: TabBar(
          controller: tabController,
          tabs: data.map((e) => Tab(text: e.title)).toList(),
          onTap: (index) {
            VerticalScrollableTabBarStatus.setIndex(index);
          },
        ),
      ),
    ],
  )

Alternatives

Packages that do the same job and could replace vertical_scrollable_tabview.

Works with

Packages commonly used together with vertical_scrollable_tabview: ones it builds on, ones built on it, and its own family.