You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This library is very important because it provides something that the framework does not:
Animating items when they move between rows of a Grid.
However, at the current moment, these animations only take place when adding, removing or reordering items.
A crucial place of animation is also when the cross axis count changes.
Problem
The sample app uses the following Sliver Grid Delegate:
This delegate is static in the sense that its cross axis count is always 4.
Given an app that runs on different devices with different screen widths, we would most likely rather use a delegate as such:
Which dynamically determines the cross axis count based on the available space.
There are other ways to achieve this same behaviour.
When the layout resizes, the cross axis count changes, but it will snap into place.
Demonstration
Below is a video demonstrating how items do currently not animate when they are moved to a different row of the grid due to the cross axis count changing:
explorer_9H7ZeJCYks.mp4
Conclusion
If the current implementation was to be expanded to support animating items in such a manner,
it would greatly benefit responsive applications looking to use this library.
The text was updated successfully, but these errors were encountered:
Preamble
This library is very important because it provides something that the framework does not:
Animating items when they move between rows of a Grid.
However, at the current moment, these animations only take place when adding, removing or reordering items.
A crucial place of animation is also when the cross axis count changes.
Problem
The sample app uses the following Sliver Grid Delegate:
This delegate is static in the sense that its cross axis count is always 4.
Given an app that runs on different devices with different screen widths, we would most likely rather use a delegate as such:
Which dynamically determines the cross axis count based on the available space.
There are other ways to achieve this same behaviour.
When the layout resizes, the cross axis count changes, but it will snap into place.
Demonstration
Below is a video demonstrating how items do currently not animate when they are moved to a different row of the grid due to the cross axis count changing:
explorer_9H7ZeJCYks.mp4
Conclusion
If the current implementation was to be expanded to support animating items in such a manner,
it would greatly benefit responsive applications looking to use this library.
The text was updated successfully, but these errors were encountered: