flutter_parallax_scroll 0.1.0 copy "flutter_parallax_scroll: ^0.1.0" to clipboard
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 ParallaxDirection enum:
    • Removed forward and reverse directions
    • Now includes: horizontal, vertical, and diagonal
    • Each direction has a default movement pattern that can be reversed
  • BREAKING: Added reverse boolean property to ParallaxConfig:
    • 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 ParallaxDirection from forward to horizontal

Removed #

  • BREAKING: Removed deprecated calculateParallaxOffset() method from ParallaxScrollController
    • Parallax calculation is now handled internally by ParallaxScrollItem

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
  • ParallaxScrollView widget for wrapping scrollable content
  • ParallaxScrollItem widget for applying parallax effects to individual items
  • ParallaxScrollController for managing parallax state and configuration
  • ParallaxConfig class for fine-tuning parallax behavior
  • ParallaxDirection enum with four direction options:
    • forward - Same direction as scroll
    • reverse - Opposite direction to scroll
    • horizontal - Horizontal movement on vertical scroll
    • vertical - 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
1
likes
160
points
54
downloads

Publisher

verified publisherbechattaoui.dev

Weekly Downloads

A package for creating beautiful parallax scrolling effects with customizable speed and direction

Repository (GitHub)
View/report issues

Topics

#flutter #parallax #scroll #animation #ui

Documentation

API reference

Funding

Consider supporting this project:

github.com

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_parallax_scroll