3Rein Parallax animation

Overview

A Parallax behavior for any Flutter Scrollable

This plugin enable a parallax effect in any Scrollable, simply wrap your Scrollable in a ParallaxArea and use a ParallaxWidget inside it. Interactive web sample Here

PageView Vertical PageView Horizontal
An animated image of the parallax animation inside a PageView with vertical scroll An animated image of the parallax animation inside a PageView with horizontal scroll
ListView Vertical ListView Horizontal
An animated image of the parallax animation inside a ListView with vertical scroll An animated image of the parallax animation inside a Listview with horizontal scroll

Features

  • Overlap foreground and background parallax
  • Customizable magnitude of the Parallax
  • Works with any Scrollable
  • Parallax vertically, horizontally or both
  • Inverted parallax

Usage

This plugin relies on RenderBox calculation and Scrollable notification to move the content accordling Simply wrap any Scrollable with a ParallaxArea and use a ParallaxWidget inside your scrollable to Enable the effect

Sample

The following sample show how to add a parallax background to a PageView:

ParallaxArea(
  child: PageView.builder(
    scrollDirection: Axis.vertical,
    itemBuilder: (context, index) {
      return ParallaxWidget(
        child: Center(
          child: Text(
            "PAGE ${index + 1}",
            style: TextStyle(
              color: Colors.white,
              fontSize: 40,
              fontWeight: FontWeight.w900,
            ),
          ),
       ),
      overflowWidthFactor: 1,
      background: Image.asset(
        "assets/background_${index % 3}.jpg",
          fit: BoxFit.cover,
      ),
    );
  }),
),

Parallax properties

Widget child

Main child to be displayed, the size of the background will be matched to this child.

Widget? background

The widget to be placed in the background, it will be contained in a OverflowBox and sized according to overflowWidthFactor and overflowHeightFactor.

double overflowWidthFactor

The width multiplier factor, the background will be as larger as the child multiplied by the overflowWidthFactor, increasing this value will increase the parallax effect during horizontal scroll.

Min value 1, default value 2.

double overflowHeightFactor

The height multiplier factor, the background will be as taller as the child multiplied by the overflowHeightFactor, increasing this value will increase the parallax effect during vertical scroll.

Min value 1, default value 2.

bool fixedHorizontal

If true the parallax effect will be disabled for the horizontal Axis.

Default value false.

bool fixedVertical

If true the parallax effect will be disabled for the vertical Axis.

Default value false.

bool inverted

If true the parallax effect will be inverted for both Axis.

Default value false.

Alignment alignment

Define the point where this Parallax should be centered The aligment will be relative to the parent ParallaxArea. For example if you set the Alignment.topLeft, the Background widget will be centered when the ParallaxWidget top and left will be aligned with the top and the left of the ParallaxArea parent.

default value Alignment.center.

bool clipOverflow

Define if the overflow should be clipped, if not clipped the content will overflow outside the ParallaxWidget.

Default value true.

EdgeInsets parallaxPadding

Give the parallax a general padding, used to avoid pixel bleeding if the content doesn't cover completely the viewport.

Default value EdgeInsets.zero.

bool showDebugInfo

Show some debug info like positioning on the current parallax boundary and overflows.

You might also like...

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ Easy to build an animation set

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ Easy to build an animation set

โœจ Flutter Animation Set [Lanuage ~~] English | ไธญๆ–‡ๆ–‡ๆกฃ Simplified Flutter stagger animation.To drive the Flutter stagger animation through a timeline in

Oct 31, 2022

A library for handling animation warmup generically

This solution is not very scalable for applications with many animations to warm up and is meant mostly as an example of an approach applications could take to warmup their animations until a more permanent solution is available.

Nov 19, 2022

A Flutter app with flip animation to view profiles of friends. ๐ŸŒŸ

A Flutter app with flip animation to view profiles of friends. ๐ŸŒŸ

Flip View Made with ๐Ÿ”ฅ in India This flutter app is based on the design made Dmytro Prudnikov for Yalantis on Dribble.He describes the design as: Just

Sep 23, 2022

Timer UI animation challenge from 'Flutter Animations Masterclass'

stopwatch_flutter An IOS stopwatch challenge from Flutter Animations Masterclass - Full Course What I learned; Use timer Use ticker Create custom shap

Jan 4, 2023

๐Ÿฑโ€๐Ÿ‘ค Flutter-Animation ๐Ÿ”ฅ ๐Ÿ”ฅ List Animated Staggered Animations

 ๐Ÿฑโ€๐Ÿ‘ค Flutter-Animation ๐Ÿ”ฅ ๐Ÿ”ฅ List Animated Staggered Animations

๐Ÿฑโ€๐Ÿ‘ค Staggered Animations made with algeria โค

Nov 22, 2022

Flutter Animation ๐Ÿฑโ€๐Ÿ‘ค Made with algeria By DZ-TM071

Flutter Animation ๐Ÿฑโ€๐Ÿ‘ค Made with algeria By DZ-TM071

Flutter Animation ๐Ÿฑโ€๐Ÿ‘ค Made with algeria By DZ-TM071

Oct 23, 2022

Flutter Animation ๐Ÿฑโ€๐Ÿ‘ค Made with algeria ๐Ÿ–ค

Flutter Animation ๐Ÿฑโ€๐Ÿ‘ค Made with algeria ๐Ÿ–ค

Flutter-awesome-login-page-animated-fastCode ๐Ÿฑโ€๐Ÿ‘ค Fast code and awesome design-ui for Login Page ! ๐Ÿ”ฅ Getting Started # First you need to add simple_

Oct 24, 2022

Flutter Animation - Grocery App UI

Flutter Animation - Grocery App UI

Flutter Animation - Grocery App UI

Jan 5, 2023

Flutter Animation liquid ๐Ÿฑโ€๐Ÿ‘ค Made with algeria By DZ-TM071

Flutter Animation liquid ๐Ÿฑโ€๐Ÿ‘ค Made with algeria By DZ-TM071

Flutter Animated Loading liquid progress ๐Ÿš€ ๐Ÿ”ฅ ๐Ÿ”ฅ screen screen # Usage First you need to add liquid_progress_indicator 0.4.0 Or + in the dependency a

Jan 10, 2022
Owner
3Rein Inc.
Equine Software Engineering Company
3Rein Inc.
Flutter animation tutorials, such common animation, flare animation.

โค๏ธ Star โค๏ธ the repo to support the project or ?? Follow Me.Thanks! Facebook Page Facebook Group QQ Group Developer Flutter Open Flutter Open 963828159

Flutterๅผ€ๆบ็คพๅŒบ 123 Sep 3, 2022
Flutter animation tutorials, such common animation, flare animation.

โค๏ธ Star โค๏ธ the repo to support the project or ?? Follow Me.Thanks! Facebook Page Facebook Group QQ Group Developer Flutter Open Flutter Open 963828159

Flutterๅผ€ๆบ็คพๅŒบ 123 Sep 3, 2022
A Flutter library that makes animation easer. It allows for separation of animation setup from the User Interface.

animator This library is an animation library for Flutter that: makes animation as simple as the simplest widget in Flutter with the help of Animator

MELLATI Fatah 225 Dec 22, 2022
A simple animated circular menu for Flutter, Adjustable radius, colors, alignment, animation curve and animation duration.

A simple animated circular menu for Flutter, Adjustable radius, colors, alignment, animation curve and animation duration. pub package Getting Started

Hasan Mohammed 91 Dec 20, 2022
Like Button is a flutter library that allows you to create a button with animation effects similar to Twitter's heart when you like something and animation effects to increase like count.

like_button Language: English | ไธญๆ–‡็ฎ€ไฝ“ Like Button is a flutter library that allows you to create a button with animation effects similar to Twitter's h

FlutterCandies 357 Dec 27, 2022
BKash-Ballance-Animation - BKash Ballance Animation For Flutter

BKash-Ballance-Animation before clone the GitHub repository please give a star o

Blackshadow Software Ltd 11 Sep 1, 2022
Fisherman-Fishing-Animation - Fisherman Fishing Animation With Flutter

Fisherman Fishing Animation before clone the GitHub repository please give a sta

Blackshadow Software Ltd 9 Oct 27, 2022
Nubank card animation - Nubank card animation built with flutter

Nubank card animation Project | Technologies | How to run | How to contribute ??

Lucas da Silva Barbosa 8 Nov 6, 2022
Fade animation - Add fade animation to your app easily

fade_animation Add fade animation to your app easily using simple_animations pac

Mazouzi Aymene 3 Oct 6, 2022
A Flutter library for gradually painting SVG path objects on canvas (drawing line animation).

drawing_animation From static SVG assets See more examples in the showcasing app. Dynamically created from Path objects which are animated over time m

null 442 Dec 27, 2022