Skip to content
pubscout

animated_button_bar

1.0.0, released 4 years ago by an unverified publisher

A customizable button bar with animated selection.

WASM-ready
$ flutter pub add animated_button_bar
Source repository

What it does

Provides a row of buttons that animate when selected. Supports inversion, custom colors, radius, padding and elevation. Allows programmatic index changes via a controller.

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

Use it when

  • You need a simple selectable button bar with built‑in animation
  • You want quick visual feedback for tab‑like UI without building it from scratch

Skip it when

  • You require complex navigation or routing logic
  • You need a full‑featured tab controller with deep state management

Strengths

  • Easy to integrate and customize
  • Built‑in animation and inversion support
  • Works on all Flutter platforms

Weaknesses

  • Limited to button‑bar use‑case
  • No built‑in state‑management integration
  • Package version appears outdated in README

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1
Column(
  mainAxisAlignment: MainAxisAlignment.center,
  children: [
    AnimatedButtonBar(
      radius: 8.0,
      padding: const EdgeInsets.all(16.0),
      invertedSelection: true,
      children: [
        ButtonBarEntry(onTap: () => print('Day'), child: Text('Day')),
        ButtonBarEntry(onTap: () => print('Week'), child: Text('Week')),
      ],
    ),
  ],
);

Alternatives

Packages that do the same job and could replace animated_button_bar.

Works with

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