Skip to content
pubscout

container_tab_indicator

0.3.0, released 5 years ago by scipack.dev

Build customized TabBar indicators using familiar Container-like properties.

WASM-ready
$ flutter pub add container_tab_indicator
Source repository

What it does

Provides a ContainerTabIndicator decoration class for Flutter's TabBar widget. Allows manipulation of width, height, color, radius, border, and positioning within a tab.

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

Use it when

  • You need a custom TabBar indicator with specific dimensions, borders, or padding
  • You want to style tab indicators using familiar Container-like properties

Skip it when

  • You need standard Material design tab indicators
  • You require complex animations not supported by the basic decoration properties

Strengths

  • Easy to customize with width, height, radius, and border properties
  • Familiar API similar to the standard Container widget

Weaknesses

  • Package is still in early stages according to documentation

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
TabBar(
  tabs: [
    Text('First', style: TextStyle(color: Colors.black)),
    Text('Second', style: TextStyle(color: Colors.black)),
  ],
  indicator: ContainerTabIndicator(
    width: 16,
    height: 16,
    radius: BorderRadius.circular(8.0),
    padding: const EdgeInsets.only(left: 36),
    borderWidth: 2.0,
    borderColor: Colors.black,
  ),
)

Alternatives

Packages that do the same job and could replace container_tab_indicator.

Works with

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