KotlinLeaner
11/25/2022, 11:54 AMColumn/Row
through lamda function in jetpack compose. I tried something but it giving me error.
PairContent
@Composable
fun PairContent(
bluetoothEnable: (ColumnScope) -> Unit,
) {
AnimatedVisibility(visible = true) {
Scaffold {
Column { columnScope ->
bluetoothEnable(columnScope)
}
}
}
}
KotlinLeaner
11/25/2022, 11:55 AMType mismatch.
Required:
ColumnScope.() → Unit
Found:
ColumnScope.(Any?) → Unit
Cannot infer a type for this parameter. Please specify it explicitly.
KotlinLeaner
11/25/2022, 11:57 AMPablichjenkov
11/25/2022, 12:13 PMbluetoothEnable: ColumnScope.() -> Unit
KotlinLeaner
11/25/2022, 12:18 PMPablichjenkov
11/25/2022, 12:20 PMcolumnScope ->
Pablichjenkov
11/25/2022, 12:21 PMKotlinLeaner
11/25/2022, 12:21 PMKotlinLeaner
11/25/2022, 12:21 PM