diff --git a/example/lib/main.dart b/example/lib/main.dart index 0c527c3..8a2e75a 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -218,13 +218,13 @@ class MyApp extends StatelessWidget { return new MaterialApp( home: new Scaffold( body: LiquidSwipe( - pages: pages, - fullTransitionValue: 200, - enableSlideIcon: true, - enableLoop: true, - positionSlideIcon: 0.5, - waveType: WaveType.liquidReveal, - ))); + pages: pages, + fullTransitionValue: 200, + enableSlideIcon: true, + enableLoop: true, + positionSlideIcon: 0.5, + waveType: WaveType.liquidReveal, + ))); } pageChangeCallback(int page) { diff --git a/lib/Animation_Gesture/animated_page_dragger.dart b/lib/Animation_Gesture/animated_page_dragger.dart index 19e331e..4d8b1d6 100644 --- a/lib/Animation_Gesture/animated_page_dragger.dart +++ b/lib/Animation_Gesture/animated_page_dragger.dart @@ -52,27 +52,23 @@ class AnimatedPageDragger { //Adding listener to animation controller //Also value to animation controller vary from 0.0 to 1.0 according to duration. - completionAnimationController = AnimationController( - duration: duration, vsync: vsync) + completionAnimationController = + AnimationController(duration: duration, vsync: vsync) ..addListener(() { - final slidePercent = lerpDouble( - startSlidePercentHor, endSlidePercentHor, - completionAnimationController.value); - final slidePercentVer = lerpDouble( - startSlidePercentVer, endSlidePercentVer, - completionAnimationController.value); + final slidePercent = lerpDouble(startSlidePercentHor, + endSlidePercentHor, completionAnimationController.value); + final slidePercentVer = lerpDouble(startSlidePercentVer, + endSlidePercentVer, completionAnimationController.value); //Adding to slide update stream - slideUpdateStream.add( - SlideUpdate(slideDirection, slidePercent, slidePercentVer, - UpdateType.animating)); + slideUpdateStream.add(SlideUpdate(slideDirection, slidePercent, + slidePercentVer, UpdateType.animating)); }) ..addStatusListener((AnimationStatus status) { //When animation has done executing if (status == AnimationStatus.completed) { //Adding to slide update stream - slideUpdateStream.add(SlideUpdate( - slideDirection, slidePercentHor, slidePercentVer, - UpdateType.doneAnimating)); + slideUpdateStream.add(SlideUpdate(slideDirection, slidePercentHor, + slidePercentVer, UpdateType.doneAnimating)); } }); } diff --git a/lib/Animation_Gesture/page_dragger.dart b/lib/Animation_Gesture/page_dragger.dart index da64d4e..9d73174 100644 --- a/lib/Animation_Gesture/page_dragger.dart +++ b/lib/Animation_Gesture/page_dragger.dart @@ -100,8 +100,8 @@ class _PageDraggerState extends State { onVerticalDragUpdate: onDragUpdate, child: widget.enableSlideIcon ? Align( - alignment: Alignment(1 - slidePercentHor + 0.005, - widget.iconPosition + widget.iconPosition / 10), + alignment: Alignment(1 - slidePercentHor + 0.005, + widget.iconPosition + widget.iconPosition / 10), child: Opacity( opacity: 1 - slidePercentHor, child: FloatingActionButton( diff --git a/lib/Animation_Gesture/page_reveal.dart b/lib/Animation_Gesture/page_reveal.dart index e88d39b..5d317b7 100644 --- a/lib/Animation_Gesture/page_reveal.dart +++ b/lib/Animation_Gesture/page_reveal.dart @@ -19,7 +19,8 @@ class PageReveal extends StatelessWidget { this.child, this.slideDirection, this.iconPosition, - this.waveType, this.vertReveal }); + this.waveType, + this.vertReveal}); @override Widget build(BuildContext context) { @@ -39,11 +40,12 @@ class PageReveal extends StatelessWidget { break; case WaveType.circularReveal: return ClipPath( - clipper: CircularWave(iconPosition, + clipper: CircularWave( + iconPosition, slideDirection == SlideDirection.leftToRight ? 1.0 - revealPercent - : revealPercent, vertReveal), - + : revealPercent, + vertReveal), child: child, ); break; diff --git a/lib/Constants/Helpers.dart b/lib/Constants/Helpers.dart index 0f26981..1c9edf4 100644 --- a/lib/Constants/Helpers.dart +++ b/lib/Constants/Helpers.dart @@ -23,7 +23,4 @@ enum TransitionGoal { close, } -enum WaveType { - circularReveal, - liquidReveal -} +enum WaveType { circularReveal, liquidReveal } diff --git a/pubspec.yaml b/pubspec.yaml index d4a2878..7cedaab 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,6 @@ name: liquid_swipe description: A Flutter plugin to implement liquid Swipe effect to provided containers. version: 1.3.1 -author: Sahdeep Singh homepage: https://github.com/iamSahdeep/liquid_swipe_flutter environment: