Skip to content

Commit 8fc4780

Browse files
committed
Use decelerate to pop out slider value (rvamsikrishna#9)
1 parent f19164e commit 8fc4780

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/flutter_fluid_slider.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -167,12 +167,12 @@ class _FluidSliderState extends State<FluidSlider>
167167
//The radius of the slider thumb control
168168
thumbDiameter = widget.thumbDiameter ?? 60.0;
169169
_animationController = AnimationController(
170-
duration: Duration(milliseconds: 200),
170+
duration: Duration(milliseconds: 150),
171171
vsync: this,
172172
);
173173

174174
_thumbAnimation = CurvedAnimation(
175-
curve: Curves.easeOut,
175+
curve: Curves.bounceOut,
176176
parent: _animationController,
177177
);
178178
}

0 commit comments

Comments
 (0)