android / android/snippets

Variable minWidth should be maxWidth

Open
#263 0 comments 0 reactions 1 assignee Claimed by @jdkoren View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.