Variable minWidth should be maxWidth
Open
- Dominant language
- Kotlin
- Stars
- 1.1k
- Forks
- 419
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 28
Description
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`
Contributor guide
Assessment
This issue has not been assessed yet.