如何像这样在 flutter 中做数据表

How to do datable in flutter like this

我需要在数据中隐藏和显示 table 如下图所示

 Use this Code For the Hide and Show System
 Visibility(
  
      visible: false,
child : DataTable(
  columns: const <DataColumn>[
    DataColumn(
      label: Text(
        'Name',
      ),
    ),
    DataColumn(
      label: Text(
        'Age',
      ),
    ),
    ......
  ],
  rows: const <DataRow>[
    DataRow(
      cells: <DataCell>[
        DataCell(Text('Mohit')),
        DataCell(Text('23')),
        DataCell(Text('Professional')),
      ],
    ),
    DataRow(
      cells: <DataCell>[
        DataCell(Text('Aditya')),
        DataCell(Text('24')),
        DataCell(Text('Associate Professor')),
      ],
    ),
     ....
  ],
),
    ),

然后---> onPressed(){ 能见度(

      visible: true,

}