Skip to content
pubscout

tab_container

3.5.3, released 3 years ago by precede.dev

Customisable tab view and carousel widget with an animated indicator

WASM-ready
$ flutter pub add tab_container
Source repository

What it does

Provides a tab view or carousel widget that handles switching between children and tabs with an animated indicator. Supports changing tab placement, custom border radii, and color animation per tab.

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

Use it when

  • You want a customisable tab view or carousel with an animated indicator
  • You need tabs positioned on different edges of the container
  • You want background colors to change dynamically based on the selected tab

Skip it when

  • You need the standard Material Scaffold and AppBar tab integration without a custom wrapper container

Strengths

  • Flexible tab placement and sizing
  • Supports custom TabController or built-in list management
  • Automatic scrolling when there are too many tabs

Weaknesses

  • Requires manual disposal of the TabController if you supply one
  • Limited to the specific layout structure provided by the package

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
TabContainer(
  controller: _tabController,
  tabs: [
    Text('Tab 1'),
    Text('Tab 2'),
  ],
  children: [
    Text('Child 1'),
    Text('Child 2'),
  ],
);

Alternatives

Packages that do the same job and could replace tab_container.

  • carousel_slider

    If you specifically need a carousel slider component rather than a combined tab view and container.