HI
I am trying to understand why can’t ‘modifier’ parameter in Fun ‘Card’ be used in TEXT composable in the Column composable. The ‘modifier’ parameter can be used in Column composable. Why it is accepting ‘Modifier’ not ‘modifier parameter’ in TEXT composable. Thank you.
fun Card(onef: String, ones: String, twof: String, twos: String, modifier: Modifier) {
Column(verticalArrangement = Arrangement.Center, horizontalAlignment = Alignment.CenterHorizontally, modifier = modifier) {
Row{
Column(verticalArrangement = Arrangement.Center, horizontalAlignment = Alignment.CenterHorizontally, modifier = *modifier*.padding(16.dp)) {
Text(text = onef, fontWeight = FontWeight.Bold, modifier=**Modifier**.padding(bottom = 16.dp))
Text(text = ones,modifier=**Modifier**.padding(8.dp))
}