Skip to content

Conversation

NicosNicolaou16
Copy link

@NicosNicolaou16 NicosNicolaou16 commented Apr 19, 2024

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 NicosNicolaou16 changed the title fix issue with position offset when the always show tooltip enabled (true) fix issue with position offset when the always show tooltip enabled is true Apr 22, 2024
@NicosNicolaou16
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant