skip to Main Content

Flutter – Failed installing dependencies

[enter image description here](https://i.sstatic.net/V7lRfath.png) I cloned github repository on my android studio but while installing dependencies it is showing error. The current Dart SDK version is 3.5.0. Because mi_card requires SDK version >=2.18.0 <3.5.0, version solving failed it should install…

VIEW QUESTION

Android Studio – how to pass viewModel as parameter in NavHost compose navigation

I have to following NavHost: NavHost( navController = navController, startDestination = Destinations.ComposeEntryPointRoute ) { composable<Destinations.HomeRoute> { HomeContent() } composable<Destinations.GradeConverterRoute> { GradeConverterScreen(navController = navController, gradeConverterViewModel = DONT KNOW WHAT TO DO HERE) } } I don't know how to pass the…

VIEW QUESTION

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
Back To Top
Search