I am trying to remove padding from TextButton
but it wont work.
TextButton(
onClick = {},
modifier = Modifier.padding(0.dp)
) {
Text(
" ${getString(R.string.terms_and_conditions)}",
color = MaterialTheme.colors.primary,
fontFamily = FontFamily(Font(R.font.poppins_regular)),
fontSize = 10.sp,
)
}
I have tried setting the height
and size
in Modifier
property as well but the padding is still present
.clickable
modifier to theText
composable still didn't remove the padding for me. – Wattle