Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion lib/flutter_xlider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,9 @@ class _FlutterSliderState extends State<FlutterSlider>
case FlutterSliderTooltipDirection.right:
animationFinish = Offset(1, 0);
break;
case FlutterSliderTooltipDirection.bottom:
animationFinish = Offset(0, 1);
break;
}

if (__isInitCall) {
Expand Down Expand Up @@ -2044,6 +2047,11 @@ class _FlutterSliderState extends State<FlutterSlider>
top = 0;
bottom = 0;
break;
case FlutterSliderTooltipDirection.bottom:
bottom = 0;
left = 0;
right = 0;
break;
}

if (_tooltipData.positionOffset != null) {
Expand Down Expand Up @@ -2741,5 +2749,5 @@ class FlutterSliderRangeStep {
}
}

enum FlutterSliderTooltipDirection { top, left, right }
enum FlutterSliderTooltipDirection { top, left, right, bottom }
enum FlutterSliderHatchMarkAlignment { left, right }