Relative Content

Tag Archive for androidkotlinandroid-jetpack-composeandroid-jetpack-compose-lazy-column

ModalBottomSheet in LazyColumn contains wrong data

I have a list with a few records. Every record has a city, country, date and id (its primary key). In dao, then repository I have function which accepts id. Finally display list it’s fine, but problem is when I click the record and display modal with this data. Id records is incorrect and the city name, country name etc. is incorrect.

Scrolling to lazyColumn item with the item key and not the item index

I built a complex lazyColumn composable that mimic a card (indeed, I need to have a list of cards containing potentialy many items each, and nesting a LazyColumn in a Card is not possible (due to the “Vertically scrollable component was measured with an infinity maximum height contraints” issue). So my composable gets a list of data items of this kind :