Introducing Compose Unstyled: The missing Design System layer for Compose UI ->
Composables
Compose UI Unit
🖌Compose Unstyled🆕 UI Kit
🤖Jetpack Compose API Reference
UI Kit
Docs
🖌Compose Unstyled🆕 UI Kit
🤖Jetpack Compose API Reference
Blog
𝕏
750+
Compose UnstyledJetpack Compose API ReferenceUI KitBlog
Classes
  • Constraints
  • Dp
  • DpOffset
  • DpRect
  • DpSize
  • ExperimentalUnitApi
  • IntOffset
  • IntRect
  • IntSize
  • LayoutDirection
  • TextUnit
  • TextUnitType
  • Velocity
Interfaces
  • Density
  • FontScaling
Properties
  • center
  • dp
  • em
  • height
  • isFinite
  • isSpecified
  • isUnspecified
  • size
  • sp
  • width
Functions
  • coerceAtLeast
  • coerceAtMost
  • coerceIn
  • constrain
  • constrainHeight
  • Constraints
  • constrainWidth
  • Density
  • DpOffset
  • DpSize
  • IntOffset
  • IntRect
  • IntSize
  • isSatisfiedBy
  • lerp
  • max
  • min
  • minus
  • offset
  • plus
  • round
  • roundToIntRect
  • roundToIntSize
  • takeOrElse
  • TextUnit
  • times
  • toIntRect
  • toIntSize
  • toOffset
  • toRect
  • toSize
  • Velocity
Compose API Reference Compose UI Unit

DpSize

Function

Common
fun DpSize(width: Dp, height: Dp): DpSize

Constructs a DpSize from width and height Dp values.

    On this page
Sponsored By
by @alexstyl