TableCell(child:Text('Tid',style:TextStyle(fontWeight:FontWeight.bold),textAlign:TextAlign.center)),// Judul untuk sel pertama// Judul untuk sel pertama
TableCell(child:Text('Tipe',style:TextStyle(fontWeight:FontWeight.bold),textAlign:TextAlign.center)),// Judul untuk sel kedua
TableCell(child:Text('Tanggal',style:TextStyle(fontWeight:FontWeight.bold),textAlign:TextAlign.center)),// Judul untuk sel kedua
TableCell(child:Text('Jam',style:TextStyle(fontWeight:FontWeight.bold),textAlign:TextAlign.center)),// Judul untuk sel kedua
TableCell(child:Text('Jumlah',style:TextStyle(fontWeight:FontWeight.bold),textAlign:TextAlign.center)),// Judul untuk sel kedua
TableCell(child:Text('Saldo Akhir',style:TextStyle(fontWeight:FontWeight.bold),textAlign:TextAlign.center)),// Judul untuk sel kedua
],
),
TableRow(
children:[
TableCell(child:Text('-',style:TextStyle(fontWeight:light,fontStyle:FontStyle.italic),textAlign:TextAlign.center)),// Judul untuk sel pertama
TableCell(child:Text('-',style:TextStyle(fontWeight:light,fontStyle:FontStyle.italic),textAlign:TextAlign.center)),// Judul untuk sel pertama
TableCell(child:Text('type',style:TextStyle(fontWeight:light,fontStyle:FontStyle.italic),textAlign:TextAlign.center)),// Judul untuk sel kedua
TableCell(child:Text('date',style:TextStyle(fontWeight:light,fontStyle:FontStyle.italic),textAlign:TextAlign.center)),// Judul untuk sel kedua
TableCell(child:Text('time',style:TextStyle(fontWeight:light,fontStyle:FontStyle.italic),textAlign:TextAlign.center)),// Judul untuk sel kedua
TableCell(child:Text('amount',style:TextStyle(fontWeight:light,fontStyle:FontStyle.italic),textAlign:TextAlign.center)),// Judul untuk sel kedua
TableCell(child:Text('last balance',style:TextStyle(fontWeight:light,fontStyle:FontStyle.italic),textAlign:TextAlign.center)),// Judul untuk sel kedua
],
),
],
),
),
SizedBox(
height:20,
),
Center(
child:Container(
height:80,
margin:EdgeInsets.fromLTRB(20,0,20,0),
child:Card(
child:Padding(
padding:constEdgeInsets.fromLTRB(10,10,10,10),
child:Row(
children:[
Expanded(
child:Table(
children:[
TableRow(
children:[
TableCell(
child:Text('Terminal',
style:TextStyle(
fontWeight:FontWeight.bold),
textAlign:TextAlign.center)),
TableCell(
child:Text('Tid',
style:TextStyle(
fontWeight:FontWeight.bold),
textAlign:TextAlign.center)),
TableCell(
child:Text('Tipe',
style:TextStyle(
fontWeight:FontWeight.bold),
textAlign:TextAlign.center)),
TableCell(
child:Text('Tanggal',
style:TextStyle(
fontWeight:FontWeight.bold),
textAlign:TextAlign.center)),
TableCell(
child:Text('Jam',
style:TextStyle(
fontWeight:FontWeight.bold),
textAlign:TextAlign.center)),
TableCell(
child:Text('Jumlah',
style:TextStyle(
fontWeight:FontWeight.bold),
textAlign:TextAlign.center)),
TableCell(
child:Text('Saldo Akhir',
style:TextStyle(
fontWeight:FontWeight.bold),
textAlign:TextAlign.center),
),
],
),
TableRow(
children:[
TableCell(
child:Text('-',
style:TextStyle(
fontWeight:light,
fontStyle:FontStyle.italic),
textAlign:TextAlign.center)),
TableCell(
child:Text('-',
style:TextStyle(
fontWeight:light,
fontStyle:FontStyle.italic),
textAlign:TextAlign.center)),
TableCell(
child:Text('type',
style:TextStyle(
fontWeight:light,
fontStyle:FontStyle.italic),
textAlign:TextAlign.center)),
TableCell(
child:Text('date',
style:TextStyle(
fontWeight:light,
fontStyle:FontStyle.italic),
textAlign:TextAlign.center)),
TableCell(
child:Text('time',
style:TextStyle(
fontWeight:light,
fontStyle:FontStyle.italic),
textAlign:TextAlign.center)),
TableCell(
child:Text('amount',
style:TextStyle(
fontWeight:light,
fontStyle:FontStyle.italic),
textAlign:TextAlign.center)),
TableCell(
child:Text('last balance',
style:TextStyle(
fontWeight:light,
fontStyle:FontStyle.italic),
textAlign:TextAlign.center),
),
],
),
],
),
],
),
),
],
),
),
),
),
Expanded(
child:Container(
child:Scrollbar(
controller:_scrollController,// Use the same ScrollController
thumbVisibility:true,
radius:Radius.circular(6),// Customize the scrollbar appearance
thickness:6,// Ensure scrollbar is always shown
child:ListView.builder(
shrinkWrap:true,// Make sure to set shrinkWrap to true