Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable only right tooltip #24

Open
desmeit opened this issue May 5, 2023 · 8 comments
Open

Disable only right tooltip #24

desmeit opened this issue May 5, 2023 · 8 comments
Assignees
Labels
documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers
Milestone

Comments

@desmeit
Copy link

desmeit commented May 5, 2023

Is it possible to disable only the right tooltip?

Thanks

@loonix
Copy link
Owner

loonix commented May 5, 2023

You might want to not choose range slide and just user the single that way you only get 1 tooltip... But tell me what you are trying to do and I might help out if required I can code that for you in case it makes sense

@desmeit
Copy link
Author

desmeit commented May 5, 2023

I would like to have a slider similar to this:

Bildschirmfoto 2023-05-04 um 16 46 12

I want to show the difference to a certain value. But for this I don't need a right handler and also no tooltip.
I can disable the right handler but with the tooltips I can only customize both together.

@loonix
Copy link
Owner

loonix commented May 5, 2023

On the top of my head I think in FlutterSliderTooltip there is a disabled property

@loonix
Copy link
Owner

loonix commented May 5, 2023

@desmeit
Copy link
Author

desmeit commented May 5, 2023

yes but it disables both: the left and the right tooltip. it would need a setting to address both individually. like the lefthandler and the righthandler.

@loonix
Copy link
Owner

loonix commented May 5, 2023

ok, I wont be able to do it now, but will have a look later. If you want in the meanwhile feel free to make a PR.

@loonix loonix self-assigned this May 5, 2023
@loonix loonix added documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers labels May 5, 2023
@loonix
Copy link
Owner

loonix commented May 5, 2023

Maybe will create an enum like:

enum DisableTooltip {
  None,
  All,
  Left,
  Right
}

it will be default to None.

@desmeit
Copy link
Author

desmeit commented May 6, 2023

sounds good.

@loonix loonix added this to the 3.1.0 milestone Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants