@@ -167,12 +167,12 @@ class _FluidSliderState extends State<FluidSlider>
167
167
//The radius of the slider thumb control
168
168
thumbDiameter = widget.thumbDiameter ?? 60.0 ;
169
169
_animationController = AnimationController (
170
- duration: Duration (milliseconds: 400 ),
170
+ duration: Duration (milliseconds: 200 ),
171
171
vsync: this ,
172
172
);
173
173
174
174
_thumbAnimation = CurvedAnimation (
175
- curve: Curves .bounceOut ,
175
+ curve: Curves .easeOut ,
176
176
parent: _animationController,
177
177
);
178
178
}
@@ -288,13 +288,13 @@ class _FluidSliderState extends State<FluidSlider>
288
288
TextStyle _currentValTextStyle (BuildContext context) {
289
289
final TextStyle defaultStyle = widget.showDecimalValue
290
290
? Theme .of (context)
291
- .textTheme
292
- .subhead
293
- .copyWith (fontWeight: FontWeight .bold)
291
+ .textTheme
292
+ .subhead
293
+ .copyWith (fontWeight: FontWeight .bold)
294
294
: Theme .of (context)
295
- .textTheme
296
- .title
297
- .copyWith (fontWeight: FontWeight .bold);
295
+ .textTheme
296
+ .title
297
+ .copyWith (fontWeight: FontWeight .bold);
298
298
299
299
return widget.valueTextStyle ?? defaultStyle;
300
300
}
@@ -313,18 +313,18 @@ class _FluidSliderState extends State<FluidSlider>
313
313
//This is used to compute the thumb position and also
314
314
//calculate the delta drag value in the horizontal drag handlers.
315
315
_sliderWidth =
316
- constraints.hasBoundedWidth ? constraints.maxWidth : 200.0 ;
316
+ constraints.hasBoundedWidth ? constraints.maxWidth : 200.0 ;
317
317
318
318
//The width remaining for the thumb to be dragged upto.
319
319
remainingWidth = _sliderWidth - thumbDiameter - 2 * thumbPadding;
320
320
321
321
//The position of the thumb control of the slider from max value.
322
322
final double thumbPositionLeft =
323
- lerpDouble (thumbPadding, remainingWidth, thumbPosFactor);
323
+ lerpDouble (thumbPadding, remainingWidth, thumbPosFactor);
324
324
325
325
//The position of the thumb control of the slider from min value.
326
326
final double thumbPositionRight =
327
- lerpDouble (remainingWidth, thumbPadding, thumbPosFactor);
327
+ lerpDouble (remainingWidth, thumbPadding, thumbPosFactor);
328
328
329
329
//Start position of slider thumb.
330
330
final RelativeRect beginRect = RelativeRect .fromLTRB (
@@ -403,8 +403,8 @@ class _FluidSliderState extends State<FluidSlider>
403
403
widget.mapValueToString != null
404
404
? widget.mapValueToString (widget.value)
405
405
: widget.showDecimalValue
406
- ? widget.value.toStringAsFixed (1 )
407
- : widget.value.toInt ().toString (),
406
+ ? widget.value.toStringAsFixed (1 )
407
+ : widget.value.toInt ().toString (),
408
408
style: _currentValTextStyle (context),
409
409
),
410
410
),
0 commit comments