Skip to content

Is it possible to animate ListView items? #4932

Answered by Vadoola
Vadoola asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, that's the issue, but this is not yet implemented. Maybe as of now there might be way to start an animation in "init"?

For future reference to anyone who comes across this. I wasn't able to get anything working with "init" (maybe's it's possible but I didn't figure it out).

I did however get something working. It's a bit hacky, and I don't know if it will scale well, but it can be seen in this demo repo.
Essentially it uses a timer in the rust code to delay the filter_model.reset() when sliding out, and then uses an extra property tied to the position, and delays setting that with a timer after calling the filter_model.reset() on sliding in.

It would certainly be a lot cleaner, and…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ogoffart
Comment options

@Vadoola
Comment options

Answer selected by Vadoola
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants