Unverified Commit 711eb99b authored by Jason Simmons's avatar Jason Simmons Committed by GitHub

Fix a type error in Slider (#23483)

Fixes https://github.com/flutter/flutter/issues/23340
parent 549e8e07
......@@ -622,7 +622,7 @@ class _RenderSlider extends RenderBox {
final double distance = (_value - _state.positionController.value).abs();
_state.positionController.duration = distance != 0.0
? _positionAnimationDuration * (1.0 / distance)
: 0.0;
: Duration.zero;
_state.positionController.animateTo(convertedValue, curve: Curves.easeInOut);
} else {
_state.positionController.value = convertedValue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment