screenWidth

Returns the width of the screen in Dp.

This Composable function calculates the screen width by accessing the display metrics from the current LocalContext and converting the pixel width to Dp using the current LocalDensity.

Return

The screen width as a Dp value.