[FIXED] Get height of element Jetpack Compose


I want to get height of my button(or other element) in Jetpack Compose. Do you know how to get?


If you want to get the height of your button after composition, then you could use: onGloballyPositionedModifier.

It returns a LayoutCoordinates object, which contains the size of your button.

Answered By – user3872620

Answer Checked By – Timothy Miller (Easybugfix Admin)

Leave a Reply

(*) Required, Your email will not be published