Relative Content

Tag Archive for androidkotlinandroid-jetpack-composeandroid-roomkotlin-flow

How to query a Room db from a composable to get item details

Having an application with Room and Compose, I’m on a composable that needs to retrieve data from the database for painting it. It is a list of favorite flights, and favorite only haves the IDs (iata) of the departure and destination airports. My composable haves the favorite but needs to do selects from airport table to recover all the data for each airport and be able to paint it. Is a list, so it need to do it for a lot of items.