You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
val roundedCorner by rememberUpdatedState(getRoundedCorner())
77
78
val bottomCornerRadius by remember { derivedStateOf { if (roundedCorner !=0.dp) roundedCorner - outsideMargin.width else32.dp } }
78
-
val contentAlignment by remember { derivedStateOf { if (getWindowSize.width > getWindowSize.height&&getWindowSize.width.dp / density.density >1200.dp) Alignment.CenterelseAlignment.BottomCenter } }
79
+
val contentAlignment by rememberUpdatedState { derivedStateOf { if (windowHeight >=480.dp&&windowWidth >=840.dp) Alignment.CenterelseAlignment.BottomCenter } }
79
80
80
81
if (!dialogStates.contains(show)) dialogStates.add(show)
81
82
LaunchedEffect(show.value) {
@@ -114,7 +115,7 @@ fun SuperDialog(
114
115
.pointerInput(Unit) {
115
116
detectTapGestures { /* Do nothing to consume the click */ }
0 commit comments