I'm trying to both scale and remove the padding around a switch composable and can't figure out why it's not working.
Row( modifier = modifier.then( Modifier .fillMaxWidth() .padding(2.dp) .background(color = Color.Yellow) ), verticalAlignment = Alignment.CenterVertically, ) { Text( text, fontSize = 12.sp, modifier = Modifier .weight(1f) .background(color = Color.Red) ) CompositionLocalProvider(LocalMinimumInteractiveComponentEnforcement provides false) { Switch( checked = state, onCheckedChange = { onToggle() }, modifier = Modifier .scale(0.5f) .padding(0.dp) .background(color = Color.Green) ) } }

Источник: https://stackoverflow.com/questions/780 ... hen-scaled
Мобильная версия