flutter_parallax_scroll 0.1.0
flutter_parallax_scroll: ^0.1.0 copied to clipboard
A package for creating beautiful parallax scrolling effects with customizable speed and direction
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.0 - 2024-12-19 #
Changed #
- BREAKING: Redesigned
ParallaxDirectionenum:- Removed
forwardandreversedirections - Now includes:
horizontal,vertical, anddiagonal - Each direction has a default movement pattern that can be reversed
- Removed
- BREAKING: Added
reverseboolean property toParallaxConfig:- Controls whether the direction is reversed (opposite to default)
- Default value is
false
- Updated parallax calculation logic to properly handle:
horizontal: Moves horizontally (left to right by default, right to left when reversed)vertical: Moves vertically (up to down by default, down to up when reversed)diagonal: Moves diagonally (top-left to bottom-right by default, bottom-right to top-left when reversed)
- Updated default
ParallaxDirectionfromforwardtohorizontal
Removed #
- BREAKING: Removed deprecated
calculateParallaxOffset()method fromParallaxScrollController- Parallax calculation is now handled internally by
ParallaxScrollItem
- Parallax calculation is now handled internally by
Added #
- Enhanced example app with interactive controls:
- Background speed slider
- Text speed slider
- Direction dropdown (horizontal, vertical, diagonal)
- Reverse direction checkbox
- Two distinct example sections:
- Parallax Background Section: Demonstrates parallax backgrounds
- Content Section: Demonstrates parallax effects on content elements
Fixed #
- Fixed parallax items not updating when config changes
- Fixed direction controls not affecting parallax behavior
- Updated all tests to use new direction system
0.0.3 - 2024-01-01 #
Fixed #
- Fixed Dart formatting issues in
parallax_scroll_controller.dart - Ensured all files follow proper Dart formatting standards
- Improved code consistency and readability
0.0.2 - 2024-01-01 #
Fixed #
- Fixed unnecessary override warning in
ParallaxScrollController.dispose()method - Improved code quality by removing redundant code
- All static analysis issues resolved
0.0.1 - 2024-01-01 #
Added #
- Initial release of Flutter Parallax Scroll package
ParallaxScrollViewwidget for wrapping scrollable contentParallaxScrollItemwidget for applying parallax effects to individual itemsParallaxScrollControllerfor managing parallax state and configurationParallaxConfigclass for fine-tuning parallax behaviorParallaxDirectionenum with four direction options:forward- Same direction as scrollreverse- Opposite direction to scrollhorizontal- Horizontal movement on vertical scrollvertical- Vertical movement on horizontal scroll
- Extension methods for easy integration:
.withParallax()- Wrap widgets with parallax scroll view.asParallaxItem()- Apply parallax effects to widgets
- Comprehensive example app demonstrating all features
- Full test coverage for all components
- Detailed documentation and API reference
Features #
- Customizable speed multiplier (0.0 to 2.0)
- Enable/disable parallax effects
- Additional offset support
- Scroll direction and state detection
- Performance optimized with efficient scroll detection
- Support for both horizontal and vertical scrolling
- Multiple parallax layers with different speeds