Open totemtec opened 3 months ago
File: com.example.compose.snippets.layouts.ConstraintLayoutSnippets.kt
fun DecoupledConstraintLayout() { BoxWithConstraints { val constraints = if (minWidth < 600.dp) { decoupledConstraints(margin = 16.dp) // Portrait constraints } else { decoupledConstraints(margin = 32.dp) // Landscape constraints }
Variable minWidth should be maxWidth
minWidth
maxWidth
File: com.example.compose.snippets.layouts.ConstraintLayoutSnippets.kt
Variable
minWidth
should bemaxWidth