All about FlowRow and FlowColumn in Jetpack Compose

Опубликовано: 20 Март 2026
на канале: John Le Android
116
5

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.