1 2 3 4 5 6 var screenWidth :Float var screenHeight :Float with(LocalDensity.current){ screenWidth = LocalConfiguration.current.screenWidthDp.dp.toPx() screenHeight = LocalConfiguration.current.screenHeightDp.dp.toPx() }
1 2 3 4 5 6
var screenWidth :Float var screenHeight :Float with(LocalDensity.current){ screenWidth = LocalConfiguration.current.screenWidthDp.dp.toPx() screenHeight = LocalConfiguration.current.screenHeightDp.dp.toPx() }