Adaptive vs Fixed Grid Cells
Make grids responsive to screen width.
Two Ways to Size Cells
A grid needs to know how wide its columns are. Compose offers two strategies: Fixed column counts and Adaptive minimum widths. 📐
Fixed Recap
You already met GridCells.Fixed(n). It always shows n columns, so cells grow or shrink to fit the screen width.
columns = GridCells.Fixed(3)All lessons in this course
- LazyVerticalGrid Galleries
- LazyRow for Carousels
- Adaptive vs Fixed Grid Cells
- Scroll State & Programmatic Scrolling