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
ItemBuilder for animated SlideAction #1
Comments
Nice one 😃. Very useful suggestion. I don't think it will be backward compatible though, if I want to keep it simple. |
If you don't want to break the current API you can use the same trick than color property on Container. You can set color field only if decoration field is not present. Maybe you can keep child under SlideAction but make it invalid if this part is not present
|
What I had in mind about breaking changes, was more about custom slidable delegate. If I want to keep the API simple, I will only expose the builders, and not the widget list anymore for slidable actions. |
Show me the code when it's done ! It's already in my project, should be straightforward to tell you how the API 'feels' and if I can reach the required effect on my app. |
You can checkout the branch feature/1_itembuilder to see the code. I added a new constructor, called I modified my example if you want an example which opacifies the slidable actions while the list item is sliding. Let me know what you think about this API. |
I really love the API, when you getting confortable with builder you want them anywhere. |
Ok great 😄 . I will add some documentation and merge it into the master branch. But I will wait to finish #2 before publishing a new version if you don't mind. |
Available on version 0.2.0 |
So the idea would be using an itemBuilder for SlideAction that mimics the AnimatedList so we can access the Animation when creating the child. This way I can also animate Opacity in my case.
The text was updated successfully, but these errors were encountered: