Check Mobile App
Read now

Liquid Swipe Animation Flutter

Save

Liquid Swipe Animation in Flutter is the animation that can provide liquidity while swiping up the pages in the app.

Majorly it is used on Onboarding Screens.

Implementation of Liquid Swipe Animation

First of all, you will have to add the liquid_swipe dependency in pubspec.yaml file of our project.

In order to get the updated version of the dependency, you can check here.

After adding the dependency, you have to run the ‘pub get’ command.

To create the Liquid Swipe Animation in the app, we will have to create multiple pages/screens in order to make them swipe.

Here, the “pages” property will take the collection of screens inside it which refers to the List<Widget> and the “liquidController” property takes the object of  LiquidController.

It also has a property called “waveType” which is used to justify which type of wave you want for your app.

There are two types of WaveTypes:-

1.Liquid Reveal (WaveType.liquidReveal)

If we apply liquidReveal, it would look something like this as shown below.

2. Circular Reveal (WaveType.circularReveal)

If we apply circularReveal, it would look something like this as shown below.

There are some callbacks available in Liquid Swipe Animation as mentioned below –

  1. onPageChangeCallback –> This Callback can be used when we want to perform some action as the page changes.
  2. currentUpdateTypeCallback –> This Callback can be used when we want to perform different types of actions at different times when the animations UpdateType is changing.

There are few properties like disableUserGesture,ignoreUserGestureWhileAnimating to enable/disable user gestures.

You can also add the Slide Icon, in order to make it easier for a user to understand that after the current screen, there is another screen as well.

For adding this widget, there is a “slideIconWidget” property in Liquid Swipe.

In this, you can customize the icon you want to display as Slide Icon.

You can also set the ‘sideReveal’ property to true so that some part of the next page is visible to you on the front page.

Complete Code & Output

Here’s the final code below –

The output of the code is –

Conclusion

In this blog, we have read about the Liquid Swipe Animation Flutter.

I hope it will help you out in understanding and getting a brief idea about it.

Thank you for reading!!

References 

https://www.pinterest.com/pin/662381057682721276/

https://medium.com/flutterdevs/liquid-swipe-animation-in-flutter-6b1da8ff069a

. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

css.php

Big thanks to Webkul and his team for helping get Opencart 3.0.3.7 release ready!

Deniel Kerr

Owner and Founder. Opencart

Talk to Sales
Start a Project

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home