parallax-image
A Flutter widget that paints an image and moves it at a slower speed than the main scrolling content.
Installation
Add dependency to your pubspec.yaml
:
Usage
ParallaxImage
can be used with any Scrollable
(ListView
for instance).
When created, it subscribes to scroll updates on nearest Scrollable
ancestor.
It is also possible to specify custom ScrollController
in which case this
widget subscribes to updates on ScrollController.position
(assumes that
controller is attached to only one Scrollable
).
See example/
folder for a complete demo.