masterdev01
masterdev01
``` @Composable fun rememberStatusBarHeightDp(): Dp { val view = LocalView.current val density = LocalDensity.current val statusBarHeightPx = remember { ViewCompat.getRootWindowInsets(view) ?.getInsets(WindowInsetsCompat.Type.statusBars()) ?.top ?: 0 } return with(density) { statusBarHeightPx.toDp() }...
``` @Composable fun rememberStatusBarHeightDp(): Dp { val view = LocalView.current val density = LocalDensity.current val statusBarHeightPx = remember { ViewCompat.getRootWindowInsets(view) ?.getInsets(WindowInsetsCompat.Type.statusBars()) ?.top ?: 0 } return with(density) { statusBarHeightPx.toDp() }...