From f32643d51dc95a553814a1c184862e84388c7069 Mon Sep 17 00:00:00 2001 From: Kainosuke Date: Tue, 20 Jul 2021 10:42:43 +0900 Subject: [PATCH] #118 call _renderBoxInitialization in onPointerDown on trackbar --- lib/flutter_xlider.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/flutter_xlider.dart b/lib/flutter_xlider.dart index 29244f7..921c505 100644 --- a/lib/flutter_xlider.dart +++ b/lib/flutter_xlider.dart @@ -1831,6 +1831,8 @@ class _FlutterSliderState extends State __dragging = false; _trackBarSlideOnDragStartedCalled = false; + _renderBoxInitialization(); + double leftHandlerLastPosition, rightHandlerLastPosition; if (widget.axis == Axis.horizontal) { double lX = _leftHandlerXPosition! +