Shubham Hupare
Shubham Hupare

Reputation: 341

Compose LazyRow crash with "Horizontally scrollable component was measured with an inifinty maximum width constraints"

I have an android recycler view inside which I am adding my compose view which will contain the LazyRow of items. This is working correctly with portrait but in case of landscape it is crashing with "Horizontally scrollable component was measured with an inifinty maximum width constraints".

Structure of code:

  LazyRow (
    Modifier: Modifier.Padding(vertical = 8.dp),
    horizontalArrangement = Arrangement.spacedBy(8.dp),
    contentPadding = PAddingValues(horizontal = horizontalPadding)
  ) {
    items(myList.toList()) { listItem ->
      // Preparing composable by taking this listItem data.
    }
  }
}```

Upvotes: 0

Views: 21

Answers (0)

Related Questions