Skip to content

Commit

Permalink
Use decelerate to pop out slider value (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
maddyb99 committed Jul 27, 2020
1 parent f19164e commit a71936d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/flutter_fluid_slider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,12 @@ class _FluidSliderState extends State<FluidSlider>
//The radius of the slider thumb control
thumbDiameter = widget.thumbDiameter ?? 60.0;
_animationController = AnimationController(
duration: Duration(milliseconds: 200),
duration: Duration(milliseconds: 150),
vsync: this,
);

_thumbAnimation = CurvedAnimation(
curve: Curves.easeOut,
curve: Curves.decelerate,
parent: _animationController,
);
}
Expand Down

0 comments on commit a71936d

Please sign in to comment.