skip to Main Content

Android Studio – pass method to Composable as parameter inside clickable lambda. The expression is unused

I have the following Composable @Composable fun ClickableBar(text: String, action: () -> Unit) { Row( modifier = Modifier .height(40.dp) .background(color = AppPrimaryGreen) .fillMaxWidth() .clickable { action }, verticalAlignment = Alignment.CenterVertically ) { Text(text = text) Icon( painter = painterResource(R.drawable.icon_arrow_right), contentDescription…

VIEW QUESTION

How to read JSON array of arrays with mixed values in Retrofit 2?

I'm trying to read the following data from the API: [ [ 1724180400000, "59191.45000000", "59597.28000000", "59137.78000000", "59511.99000000", "544.56764000", 1724183999999, "32351755.73378980", 51002, "290.20494000", "17241827.16012430", "0" ], [ 1724184000000, "59512.00000000", "59722.72000000", "59421.38000000", "59589.07000000", "301.58055000", 1724187599999, "17968010.37382020", 23563, "169.48375000", "10099057.30721750", "0" ] ]…

VIEW QUESTION

Firebase – Firestore .where + Filter.and queries not working

I'm trying to perform a compound and Firestore query in Kotlin by following this guide: https://firebase.google.com/docs/firestore/query-data/queries#compound_and_queries My code is as follows: val query = Firebase.firestore .collection("profiles") .where( Filter.and( Filter.inArray("profileGender", preferenceGenderArray), Filter.equalTo("profilePaused", false) ) ) .get() Android Studio is giving me…

VIEW QUESTION
Back To Top
Search