Property

center

Returns the DpOffset of the center of the rect from the point of [0, 0] with this DpSize.

Source set: Common
public val DpSize.center: DpOffset

Returns the DpOffset of the center of the rect from the point of 0, 0 with this DpSize.

Source set: Common
public val IntSize.center: IntOffset

Returns the IntOffset of the center of the rect from the point of 0, 0 with this IntSize.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: