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

[Request] Turn off rolling animation #9

Closed
subzero911 opened this issue Oct 11, 2020 · 6 comments
Closed

[Request] Turn off rolling animation #9

subzero911 opened this issue Oct 11, 2020 · 6 comments
Assignees
Labels
enhancement New feature or request

Comments

@subzero911
Copy link

At first, thank you for the great package!
Could you add a parameter to turn off rolling animation? I want just to have a custom icon on a knob, and don't want this fancy rolling.

@Automatik
Copy link
Contributor

In the meantime you can set the animation duration to zero.
animationDuration: Duration(seconds: 0)

@subzero911
Copy link
Author

In this case, the knob translation animation will disappear too. It will just jump to "on/off" position.
I want to keep knob translation but get rid off rolling.

@sureshkumar-skc
Copy link

@Automatik Any progress on this ?

@Automatik
Copy link
Contributor

Automatik commented Jan 4, 2022

You can replace the CurvedAnimation object with another one that you prefer and assign it to the animation variable. Or in the animationController's listener, in the setState method, assign to the value variable the value that you want at every transition.

@cgustav cgustav self-assigned this Sep 6, 2022
@cgustav cgustav added bug Something isn't working enhancement New feature or request and removed bug Something isn't working labels Sep 6, 2022
@cgustav
Copy link
Owner

cgustav commented Sep 6, 2022

In case any of you still want a solution to this I could work on it and release a new version asap. In the meantime I offer you my apologies for the late response.

@cgustav
Copy link
Owner

cgustav commented Jan 12, 2023

More improvements were added in the past release. I close this discussion due to inactivity.

Cheers

@cgustav cgustav closed this as completed Jan 12, 2023
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

4 participants