Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

liquid swipe_flutter

this repository contains the liquid swipe source code. liquid swipe is the revealing clipper to bring off amazing liquid like swipe to stacked container and inspired by cuberto’s liquid swipe and introviews.

liquid swipe

another

sample apk

download sample apk as shown in example from releases.

get it from github releases

getting started

  • add this to your pubspec.yaml
    dependencies:
    liquid_swipe: ^1.2.0
    
    
  • get the package from pub:
    flutter packages get
    
  • import it in your file
    import 'package:liquid_swipe/liquid_swipe.dart';
    

usage

  • liquid swipe just requires the list of containers. just to provide flexibity to the developer to design its own view through it.
final pages = [
   container(...),
   container(...),
   container(...),
 ];
  • now just pass these pages to liquidswipe widget.
 @override
 widget build(buildcontext context) {
   return new materialapp(
     home: builder(
         builder: (context) =>
             liquidswipe(
                 pages: pages
             )),
   );
 }

attributes

attribute datatype description default value comments
pages list<container> set the pages/ views/ containers null a page can contain anything, look for an example
fulltransitionvalue double sets the scroll distance or sensitivity for a complete swipe. 400.0 this transition value can be used to increase or decrease the sensitivity of the swipe. 100.0 would make swipe really fast with even a bit of drag
initialpage int set the initial page 0 should not be >= no.of pages or smaller than 0
enableslideicon bool used to enable slide icon to the right for where the wave would originate false gives a ios style arrow to right side of the screen. might include modification to it soon.
slideiconwidget widget create your own icon and add here icon(icons.arrow_back_ios) you can use icons from icons package. thanks to pr #10
positionslideicon double position your icon in y-axis at right side of the screen 0.54 range from -1 to 1, -1 represents extreme top and 1 represent extreme bottom. soon add x-axis position, if required!
enableloop bool enable or disable pages recurrence. true if you dont want to make pages to be in the loop, use this attribute.
wavetype wavetype select the type of reveal you want. wavetype.liquidreveal you can use circularreveal, more coming soon. import helpers.dart file if autoimport doesn’t work.

Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

Comments are closed.