Shaky_animated_list
Shaky_animated_list can be used for three main things:
- Animate List view scroll.
- Animate grid view first view.
- Animate grid view scroll.
1. Library over view
All these animations track your scroll changes on screen or your list first attachment to animated your list items with different transition rules.
Shaking Grid | Scroll list | Scroll Grid |
---|---|---|
You can define these animation directions Axis by channing your list ScrollDirection.
Shaking Grid
Shaking grid can be simply implemented by wrapping your grid child by GridAnimatorWidget
and that’s it we will take it from here ^^
for example you can simply do this to show shaking grey color cards
ListView Scroll animations
ListView Scroll animations will enable your to implement the scroll animations with full control on animations space and duration please don’t add vertical margins to your elements, you can use the spaceBetween
to give a space between elements and extendedSpaceBetween
to control the scroll animations space.
Also you can use duration
to control the reverse animations duration based on your needs
for example you can simply do this to show ListView vertical Scroll animations
Grid Scroll animations
Grid Scroll animations will enable your to implement the scroll animations on a grid view, one little change here is that we will implement the delegate
, this is a design issue that we run into so you will have to
to specify your crossAxisCount
, crossAxisSpacing
, mainAxisSpacing
, and duration
and we will take it from here,you can use any other default supported parameters in GridView.
for example you can simply do this to show Grid vertical Scroll animations
ListView horizontal Scroll animations
if you want to add a horizontal animations, all what you have to do is to add a scroll direction to the widget and that’s it
for example you can simply do this to show ListView horizontal Scroll animations
Sample source code
Contribute
Let’s develop with collaborations. We would love to have contributions by raising issues and opening PRs. Filing an issue before PR is must.
License
Project is published under the Apache 2.0 license. Feel free to clone and modify repo as you want, but don’t forget to add reference to authors ?