我将在我的应用程序中使用数据表。
在我的页面中,我有一个背景,这个数据表应该在一个特定的位置(可能是中心),但我不知道如何为那个(数据表)设置对齐方式。
谁能告诉我如何解决这个问题?
最佳答案
child: Table(
children: [
TableRow(children: [
Center(child: Text("item 1"),),
Center(child: Text("item 2"),),
Center(child: Text("item 3"),),
Center(child: Text("item 4"),),
Center(child: Text("Edit"),),
]),
在职的。
关于flutter - Flutter 中的表格对齐?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52409856/