container_tab_indicator
0.3.0, released 5 years ago by scipack.dev
Build customized TabBar indicators using familiar Container-like properties.
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.
- flutter_card_swiper
A Tinder-like card swiper widget with support for arbitrary directions and custom logic.
76Compare - pull_to_refresh_new
A refresh indicator widget that supports android, ios, and web.
41Compare - bubble_tab_indicator
Provides a bubble-style indicator for TabBar in Flutter.
48Compare - liquid_progress_indicator_v2
A progress indicator with a water-like liquid effect.
50Compare
Works with
Packages commonly used together with container_tab_indicator: ones it builds on, ones built on it, and its own family.