How to use Intrinsic in Jetpack Compose

Опубликовано: 27 Февраль 2026
на канале: John Le Android
207
4

Subscribe my channel to receive new video:    / @johnleandroid  
Watch more here :    / @johnleandroid  

In this video, I'll show you how to use Intrinsic in Jetpack Compose.

Intrinsic measurements are used to determine the ideal size of a composable based on its content, rather than constraining it to a fixed size or filling the available space. Intrinsics help you create UI components that adapt naturally to their content without hard-coding sizes.

Here’s how to use Intrinsic measurements in Jetpack Compose:

Types of Intrinsics in Jetpack Compose
Jetpack Compose provides two types of intrinsic measurements:
Intrinsic Width: The minimum or maximum width the composable can be based on its height.
intrinsicSize = IntrinsicSize.Min: Sets the composable's width to the smallest possible size that fits the content.
intrinsicSize = IntrinsicSize.Max: Sets the composable's width to the largest size that can fit the content.
Intrinsic Height: The minimum or maximum height the composable can be based on its width.
intrinsicSize = IntrinsicSize.Min: Sets the composable's height to the smallest possible size that fits the content.
intrinsicSize = IntrinsicSize.Max: Sets the composable's height to the largest size that can fit the content.

#johnleandroid, #intrinsic, #jetpacks, #jetpackcompose, #modified, #jetpackcomposemodified