Subscribe my channel to receive new video: / @johnleandroid
Watch more here : / @johnleandroid
In this video, I'll show you how to use FlowRow and FlowColumn in Jetpack Compose.
FlowRow and FlowColumn are composables that are similar to Row and Column, but differ in that items flow into the next line when the container runs out of space. This creates multiple rows or columns. The number of items in a line can also be controlled by setting maxItemsInEachRow or maxItemsInEachColumn. You can often use FlowRow and FlowColumn to build responsive layouts— content will not be cut off if items are too large for one dimension, and using a combination of maxItemsInEach with Modifier.weight(weight) can help build layouts that fill/expand the width of a row or column when needed.