Skip to content
pubscout

tab_indicator_styler

2.0.0, released 5 years ago by theadar.xyz

Add customizable styling indicators directly to default Flutter TabBars

WASM-ready
$ flutter pub add tab_indicator_styler
Source repository

What it does

Provides customized tab indicators such as DotIndicator, MaterialIndicator, and RectangularIndicator that can be plugged directly into a standard Flutter TabBar.

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

Use it when

  • You want to enhance the default Flutter TabBar with custom indicator styles like dots or rounded rectangles.
  • You need customizable padding, radius, and stroke options for tab indicators.

Skip it when

  • You are implementing completely custom tab bar widgets from scratch rather than using the default TabBar.
  • You need complex physics or animation engines that go beyond simple indicator painting styles.

Strengths

  • Integrates directly into the default Flutter TabBar.
  • Provides multiple built-in styles like DotIndicator, MaterialIndicator, and RectangularIndicator.
  • Highly customizable with radius, padding, and stroke options.

Weaknesses

  • Limited to only 3 different indicator styles.
  • Not documented beyond the basic styles and usage provided.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
TabBar(
  indicatorColor: Colors.green,
  tabs: [
    Tab(text: "Home"),
    Tab(text: "Work"),
  ],
  indicator: DotIndicator(
    color: Colors.black,
    distanceFromCenter: 16,
    radius: 3,
    paintingStyle: PaintingStyle.fill,
  ),
)

Alternatives

Packages that do the same job and could replace tab_indicator_styler.