animated_cycler
A versatile Flutter widget that automatically cycles through items with smooth bidirectional animations. Perfect for tickers, banners, news feeds, and rotating content.
1.0.4
795 downloads/mo
#642 most downloaded on pub.dev
BottlePumpkin/animated_cycler
What this package is like to depend on
Last release 1 years ago
21 Aug 2025
Too new to tell
only 2 release windows
Most releases are documented
notes for 4 of 5 stable releases
Nothing withdrawn
no release was ever pulled
1 years old
5 releases · first in 2025
0 releases in the last 12 months
see the full history below
Release timeline
5 releases · Aug 2025 to Aug 2025
2026
Releases
latest 5-
1.0.421 Aug 2025Release notes
Open source →Added
- Added
onAnimationStartcallback that triggers when animation transitions begin - The callback receives the item that will be displayed next and its index
- Works with all navigation methods: auto-play, nextItem(), previousItem(), and goToIndex()
Improved
- Enhanced animation event system with both start and complete callbacks
- Added comprehensive test coverage for the new callback functionality
- Added
-
1.0.318 Aug 2025Release notes
Open source →Fixed
- Fixed
loop: falseparameter not working properly - the widget now correctly stops at the last item when loop is disabled - Fixed autoPlay to stop automatically when reaching the last item with
loop: false - Added proper boundary checks for next/previous item navigation
- Added animation completion callbacks to all navigation methods (nextItem, previousItem, goToIndex)
Improved
- Enhanced code quality by fixing all lint warnings
- Improved code formatting to meet Dart style guidelines (80-character line limit)
- Added comprehensive test coverage for loop functionality
- Added example demonstrating
loop: falsebehavior
Documentation
- Updated CHANGELOG.md with version history
- Fixed
-
1.0.218 Aug 2025 -
1.0.103 Aug 2025Nothing published for this version
-
1.0.003 Aug 2025Release notes
Open source →Added
- Initial release of AnimatedCycler package
- Support for both vertical and horizontal animation directions
- Generic type support for any data type
- Automatic cycling with customizable display and animation durations
- Manual control methods:
nextItem(),previousItem(),goToIndex() - Auto-play controls:
togglePlayPause(),pause(),resume() - Named constructors:
AnimatedCycler.vertical()andAnimatedCycler.horizontal() - Customizable animation curves (defaults to
Curves.easeInOut) - Item tap callbacks with
onItemTapparameter - Animation completion callbacks with
onAnimationCompleteparameter - Loop control with
loopparameter - Performance optimizations for smooth animations
- Comprehensive documentation with API reference
- Example usage code for common scenarios
Features
- Bidirectional Animation: Smooth transitions in both vertical and horizontal directions
- Type Safety: Full generic type support with Dart's type system
- Flexible Sizing: Configurable container size (height for vertical, width for horizontal)
- Auto-play Control: Start, stop, pause, and resume functionality
- Manual Navigation: Programmatic control over item selection
- Custom Styling: Complete control through custom
itemBuilderfunction - Event Handling: Tap detection and animation completion callbacks
- Performance Optimized: Efficient rendering with minimal rebuilds
Technical Details
- Minimum Flutter SDK:
>=3.0.0 - Minimum Dart SDK:
>=2.17.0 - Zero external dependencies (Flutter framework only)
- Stateful widget with
TickerProviderStateMixinfor smooth animations - Uses
AnimationControllerandTransform.translatefor optimal performance - Automatic cleanup of timers and animation controllers
Documentation
- Comprehensive README with usage examples
- Complete API documentation with dartdoc comments
- Example code for vertical and horizontal usage
- Testing guidelines and examples
- Contributing guidelines for developers