Variable minWidth should be maxWidth

Open
#263 0 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@jdkoren is already working on this.

Since May 3, 2024.

Assessment

This issue has not been assessed yet.

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

Dominant language
Kotlin
Stars
1.2k
Forks
448
Avg merge
4d 22h
Merged PRs (30d)
42

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from android/snippets

All issues in android/snippets

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.