flutter_parallax_scroll library

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

This package provides:

  • Customizable parallax speed (0.0 to 2.0)
  • Multiple parallax directions (forward, reverse, horizontal, vertical)
  • Easy integration with extension methods
  • Performance-optimized scroll detection
  • Flexible configuration options

Features

  • ParallaxScrollView: Main widget for wrapping scrollable content
  • ParallaxScrollItem: Widget for applying parallax effects to individual items
  • ParallaxScrollController: Controller for managing parallax state
  • Extension methods: Quick implementation with .asParallaxItem() and .withParallax()

Example

import 'package:flutter_parallax_scroll/flutter_parallax_scroll.dart';

Container(
  height: 200,
  child: Image.asset('background.jpg').asParallaxItem(
    config: ParallaxConfig(
      speed: 0.5,
      direction: ParallaxDirection.reverse,
    ),
  ),
)

Classes

ParallaxConfig
Configuration for parallax scrolling effects
ParallaxScrollController
Controller for managing parallax scroll effects
ParallaxScrollItem
A widget that applies parallax scrolling effects to its child
ParallaxScrollView
A scrollable widget that provides parallax effects to its children

Enums

ParallaxDirection
Defines the direction of parallax scrolling effect

Extensions

ParallaxScrollViewExtension on Widget
Extension to provide easy access to parallax effects in existing widgets