SmartTabView

pub version GitHub Repo

A scroll-aware tab view widget that syncs tab selection based on scroll and supports both horizontal and vertical tab layouts.


✨ Features

  • Auto-selects tab while scrolling through sections
  • Supports both horizontal and vertical tab layouts
  • Custom widgets for both tabs and sections
  • Lightweight and easy to integrate

🚀 Usage

SmartTabView(
  tabPosition: TabPosition.top, // or TabPosition.left
  tabs: const [
    Tab(text: "Overview"),
    Tab(text: "Benefits"),
    Tab(text: "Process"),
    Tab(text: "Requirement"),
  ],
  sections: const [
    MySection(title: 'Overview'),
    MySection(title: 'Benefits'),
    MySection(title: 'Process'),
    MySection(title: 'Requirement'),
  ],
)

Libraries

smart_tab_view