如何移除 IconButton 中的填充?我希望列中的项目具有相同的起始填充{{start padding}}。
Column(
modifier = Modifier
.fillMaxWidth()
.padding(horizontal = 16.dp)
) {
IconButton(onClick = { }) {
Icon(asset = Icons.Filled.Search)
}
Text("Some text")
}
then
是否仍然需要?根据源代码,Modifier.then(x)
等同于x
。而且似乎没有this
也能正常工作,我有遗漏什么吗? - Phil DukhovIconButton
的大小被硬编码为48.dp
并带有一个then
修饰符,这里使用1.0.0
版本的原因是什么。现在最好的解决方案已经不同了。 - Gabriele Mariotti