【发布时间】:2021-11-07 02:34:24
【问题描述】:
**我的问题是我想通过调用我的 API 继续在我的行中添加数据,而不是更新它**
SingleChildScrollView(
scrollDirection: Axis.horizontal,
child: DataTable(
columnSpacing: 13.0,
columns: <DataColumn>[
DataColumn(label: Text("TestName")),
DataColumn(label: Text("Fee")),
DataColumn(label: Text("Discounted Fee")),
DataColumn(label: Text("Booking Fee")),
],
rows: <DataRow>[
DataRow(
cells: <DataCell>[
DataCell(Container(child: Text(testName?? '',overflow: TextOverflow.ellipsis))),
DataCell(Text(getTestFeeObj?.fee ?? '')),
DataCell(Text(getTestFeeObj?.discountedFee ?? '')),
DataCell(Text(getTestFeeObj?.bookingFee ?? '')),
],
)
]
),
)
【问题讨论】:
-
使用提供异步数据加载序列的 dart 流。