TableCell(child:Text('Tipe',style:TextStyle(fontWeight:FontWeight.bold))),// Judul untuk sel kedua
TableCell(child:Text('Tid',style:TextStyle(fontWeight:FontWeight.bold),textAlign:TextAlign.center)),// Judul untuk sel pertama// Judul untuk sel pertama
TableCell(child:Text('Jumlah',style:TextStyle(fontWeight:FontWeight.bold))),// Judul untuk sel kedua
TableCell(child:Text('Tipe',style:TextStyle(fontWeight:FontWeight.bold),textAlign:TextAlign.center)),// Judul untuk sel kedua
TableCell(child:Text('Saldo Akhir',style:TextStyle(fontWeight:FontWeight.bold))),// 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(
TableRow(
children:[
children:[
TableCell(child:Text('-',style:TextStyle(fontWeight:light,fontStyle:FontStyle.italic))),// 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))),// Judul untuk sel kedua
TableCell(child:Text('-',style:TextStyle(fontWeight:light,fontStyle:FontStyle.italic),textAlign:TextAlign.center)),// Judul untuk sel pertama
TableCell(child:Text('amount',style:TextStyle(fontWeight:light,fontStyle:FontStyle.italic))),// Judul untuk sel kedua
TableCell(child:Text('type',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))),// 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
],
],
),
),
],
],
...
@@ -1043,8 +1099,12 @@ class _HomePageCheckBalanceState extends State<HomePageCheckBalance> implements
...
@@ -1043,8 +1099,12 @@ class _HomePageCheckBalanceState extends State<HomePageCheckBalance> implements
),
),
Expanded(
Expanded(
child:Container(
child:Container(
child:
child:Scrollbar(
ListView.builder(
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
shrinkWrap:true,// Make sure to set shrinkWrap to true
itemCount:balanceHistoryData.length,
itemCount:balanceHistoryData.length,
itemBuilder:(context,index){
itemBuilder:(context,index){
...
@@ -1053,10 +1113,31 @@ class _HomePageCheckBalanceState extends State<HomePageCheckBalance> implements
...
@@ -1053,10 +1113,31 @@ class _HomePageCheckBalanceState extends State<HomePageCheckBalance> implements