What is PackingInfiniteGrid?
masterThe PackingInfiniteGrid is a specialized grid layout designed to emphasize important items by making them larger without significantly increasing the overall weight of the items.
Unlike standard grids, rows and columns are not strictly separated; instead, items are dynamically placed within the available horizontal and vertical space. This results in a non-orderly, fluid layout.
Its behavior is controlled by two key weights:
- If
sizeWeightis higher thanratioWeight, the absolute size of items is preserved as much as possible. - If
ratioWeightis higher thansizeWeight, the relative ratio of items is preserved as much as possible.