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

Add optional parameter to specify type of animation #38

Merged
merged 6 commits into from
Aug 10, 2024

Conversation

cadnza
Copy link
Contributor

@cadnza cadnza commented Dec 9, 2023

The default animations on TreeView and SliverTreeView work fine for small lists, but they break down with a large number of complex elements. This PR proposes an optional Animation<double>? animation parameter for each of them (as well as each of their respective constructors) that allows users to specify a custom animation, including suppressing animation altogether.

Omitting the animation parameter defaults animation to the package default, so this PR introduces no breaking changes.

I've also added an optional duration parameter to scrollToItem and scrollToIndex that defaults to the library default.

(Also—this is a feature born purely of self interest. I've got a big tree I'm trying to manage, and this library is perfect for my use case except that the thing freaks out when it tries to animate.)

@wasimshigri wasimshigri merged commit 75be9cd into embraceitmobile:main Aug 10, 2024
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.

None yet

3 participants