我不知道如何在 jetpack compose 中将按钮放在屏幕右上角。请帮我编写代码吗?
我已添加按钮,但它显示在屏幕中央
Box(){
IconButton(
onClick = { /* Handle settings button click */ },
modifier = Modifier
.padding(9.dp)
) {
Icon(
imageVector = Icons.Default.Settings,
contentDescription = "Settings"
)
}
}