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 Slider Button #19

Open
MohsinIkram-Auxilium opened this issue Aug 13, 2024 · 1 comment
Open

Disable Slider Button #19

MohsinIkram-Auxilium opened this issue Aug 13, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@MohsinIkram-Auxilium
Copy link

How can we disable ActionSlider.custom button just like we can do in the Elevated Button?

@maeddin
Copy link
Member

maeddin commented Aug 13, 2024

This is currently not supported, but you can simply wrap an IgnorePointer and Opacity around it to achieve the same effect:

IgnorePointer(
    ignoring: !active,
    child: AnimatedOpactiy(
        duration: const Duration(milliseconds: 250),
        opacity: active ? 1.0 : 0.5,
        child: ActionSlider.custom(...),
    ),
)

@MohsinIkram-Auxilium Does this solve your use case?

@maeddin maeddin self-assigned this Aug 13, 2024
@maeddin maeddin added the enhancement New feature or request label Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants