flutter_xlider icon indicating copy to clipboard operation
flutter_xlider copied to clipboard

fix issue with position offset when the always show tooltip enabled is true

Open NicosNicolaou16 opened this issue 1 year ago • 1 comments
trafficstars

Fixed an issue with tool tip position offset when the alwaysShowTooltip is true and set direction with FlutterSliderTooltipDirection.top (optional), so the tool tip is not showing or the handler overlap the tool tip

The fix is in this file: lib/src/view/flutter_slider_widget.dart

You can try the "master" branch with this code to see the issue and also you can see the issue below from print screens

Container(
         // width: 100,
         // height: 50,
         padding: EdgeInsets.all(50),
             child: FlutterSlider(
                values: [0],
                max: 100,
                min: 0,
                tooltip: FlutterSliderTooltip(
                    alwaysShowTooltip: true,
                    direction: FlutterSliderTooltipDirection.top,
                    //positionOffset: FlutterSliderTooltipPositionOffset(top: -25) //added this line to fix it temporary 
              ),
           ),
        );

Screenshot_20240419_232057 Screenshot_20240419_232126 Screenshot_20240419_232137

NicosNicolaou16 avatar Apr 19 '24 20:04 NicosNicolaou16

Hello 👋 can you review my pull request please? 😁🙏@Ali-Azmoud

NicosNicolaou16 avatar May 18 '24 08:05 NicosNicolaou16