animated_options_bar 0.1.3
animated_options_bar: ^0.1.3 copied to clipboard
A reusable animated tabbar/scrollbar component with smooth selection animations for Flutter.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.1.3 - 2026-05-14 #
Changed #
- Option labels render on a single line with
TextOverflow.ellipsiswhen space is limited, avoiding clipped or overflowing text in the bar.
Fixed #
- In equal-width tab bar mode, the selection pill no longer extends past its slot (and get clipped) when one label’s intrinsic width is larger than its share of the row but the row still fits in tab bar mode.
0.1.2 - 2026-01-15 #
Added #
- Disabled items support via
isItemEnabledcallback inAnimatedOptionsBar disabledTextColorparameter inOptionsBarConfigfor styling disabled items- Visual feedback for disabled state (reduced opacity, non-interactive)
0.1.1 - 2026-01-14 #
Added #
centerOptionsparameter toOptionsBarConfigfor centering option items within the bar- When
true, items are tightly grouped in the center with natural widths - When
false(default), maintains original behavior (expanded in tabbar mode, left-aligned in scrollbar mode) - Particularly useful in tabbar mode when items don't fill the entire width
- When
Changed #
- Updated minimum SDK constraint from
^3.9.2to>=2.17.0for broader compatibility - Updated example SDK constraint to match package requirements
Fixed #
- Selection indicator positioning when
centerOptionsis enabled - Text alignment with selection indicator in centered mode
- Item width calculation for proper alignment in centered tabbar mode
0.1.0 - 2025-12-05 #
Added #
- Initial release of
animated_options_barpackage AnimatedOptionsBarwidget with smooth sliding and resizing animations- Automatic layout mode detection (tabbar vs scrollbar)
OptionsBarConfigfor customizable styling- Support for String items with auto-detection (getId/getLabel optional)
- Support for custom item types with getId/getLabel functions
- Built-in accessibility support with Semantics widgets
- Comprehensive error handling and edge case management
- Cached text measurements for performance optimization
- Comprehensive test suite
Features #
- Smooth selection animations with configurable duration
- Automatic switching between tabbar mode (full width) and scrollbar mode (horizontal scrolling)
- Configurable colors, padding, spacing, and border radius
- Optional scroll arrows for scrollbar mode
- Optional background color and custom text styles