phu*_*gnd 13 datatable mobile dart flutter
如何在Flutter中隐藏DataTable的列标题?
\n Flutter 中的数据表
DataTable(\n headingRowHeight: 0,\n columns: <DataColumn>[\n DataColumn(label: Text("Name")),\n DataColumn(label: Text("Hour")),\n DataColumn(label: Text("Tag")),\n DataColumn(label: Text("Date")),\n DataColumn(label: Text("Action")),\n\n], rows: lstCourse.map((e) => DataRow(\n cells: <DataCell>[\n DataCell(Text(e.Name)),\n DataCell(Text(e.Hour_Text)),\n DataCell(Text(e.Tag)),\n DataCell(Text(e.StartDate_Text)),\n DataCell(RaisedButton(onPressed: (){}, child: Text("\xc4\x90\xc4\x83ng k\xc3\xbd"),)),\n ]\n)).toList()\n);\nRun Code Online (Sandbox Code Playgroud)\n\n我尝试在 DataTable 类中找到一些选项,但似乎不存在
\nPau*_*hin 17
headerRowHeight 为 0,空容器为 DataColumn 标签
DataTable(
headingRowHeight: 0,
columns: [
DataColumn(label: Container()),
DataColumn(label: Container()),
DataColumn(label: Container()),
DataColumn(label: Container()),
DataColumn(label: Container()),
],
rows: ..
),
Run Code Online (Sandbox Code Playgroud)