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.
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.
- flutter_custom_tab_bar
Custom tab bar widget with multiple indicator styles including vertical round, standard, linear, and round.
44Compare - docx_viewer
Displays DOCX files across Flutter platforms
62Compare - section_view
Provides a section list view widget with alphabet indexer and refresh support.
44Compare - extended_tabs
An extension library for Flutter Tabs, TabBar, and TabView with advanced scrolling support.
58Compare
Works with
Packages commonly used together with vertical_scrollable_tabview: ones it builds on, ones built on it, and its own family.