我希望小部件正确对齐,但使用单列。还有其他方法可以对齐这些项目吗?
代码:
Column(LayoutPadding(20.dp)) {
Align(alignment = Alignment.TopRight) {
Text(text = "0")
Text(text = "testOperation")
}
}
结果:
(RIGHT ALIGNED) 0
预期的:
(RIGHT ALIGNED) 0
(RIGHT ALIGNED) testOperation