smart_tab_view 1.2.0 copy "smart_tab_view: ^1.2.0" to clipboard
smart_tab_view: ^1.2.0 copied to clipboard

A scroll-aware tab view widget with customizable tab layout and scroll sync.

SmartTabView #

pub version
GitHub Repo

A scroll-aware tab view widget that automatically syncs the selected tab with scroll position. Supports both horizontal (top) and vertical (left) tab layouts. Perfect for multi-section pages with dynamic content.


✨ Features #

  • ✅ Auto tab selection while scrolling through sections (like Blinkit/Swiggy/Zomato)
  • 🧭 Scroll-to-section on tab tap
  • ↕️ Supports both top (horizontal) and left (vertical) tab layouts
  • 🎨 Accepts custom widgets for both tabs and sections
  • 📱 Responsive & lightweight integration with customizable properties
  • 📏 Handles short sections using minimum height constraints

Smart Tab View Demo

⚠️ Important Note #

To ensure proper scrolling and tab synchronization:

🔸 Each section should have enough vertical content.
If all sections are very short (e.g., only 1–2 lines), the page will not scroll, and automatic tab switching will not work as expected.

📌 Best Practice: Use more content per section or apply a minHeight constraint to ensure a scrollable layout.


📦 Installation #

Add this to your pubspec.yaml:

dependencies:
  smart_tab_view: ^<latest_version>
10
likes
140
points
6
downloads

Publisher

unverified uploader

Weekly Downloads

A scroll-aware tab view widget with customizable tab layout and scroll sync.

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (license)

Dependencies

flutter

More

Packages that depend on smart_tab_view