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

Flutter 3.24.0 causing too much errors

I am using to run the E-Commerce shopping app template from here: https://github.com/abuanwar072/E-commerce-Complete-Flutter-UI I used flutter 3.24.0 but got so much errors. Seems the errors were from the flutter package. How to solve this? I've tried flutter 3.22.3 also but…

VIEW QUESTION
Back To Top
Search