TableCell(child:Text('Tid',style:TextStyle(fontWeight:FontWeight.bold),textAlign:TextAlign.center)),// Judul untuk sel pertama// Judul untuk sel pertama
child:Text('Terminal',
TableCell(child:Text('Tipe',style:TextStyle(fontWeight:FontWeight.bold),textAlign:TextAlign.center)),// Judul untuk sel kedua
style:TextStyle(
TableCell(child:Text('Tanggal',style:TextStyle(fontWeight:FontWeight.bold),textAlign:TextAlign.center)),// Judul untuk sel kedua
fontWeight:FontWeight.bold),
TableCell(child:Text('Jam',style:TextStyle(fontWeight:FontWeight.bold),textAlign:TextAlign.center)),// Judul untuk sel kedua
textAlign:TextAlign.center)),
TableCell(child:Text('Jumlah',style:TextStyle(fontWeight:FontWeight.bold),textAlign:TextAlign.center)),// Judul untuk sel kedua
TableCell(
TableCell(child:Text('Saldo Akhir',style:TextStyle(fontWeight:FontWeight.bold),textAlign:TextAlign.center)),// Judul untuk sel kedua
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(
TableRow(
children:[
children:[
TableCell(child:Text('-',style:TextStyle(fontWeight:light,fontStyle:FontStyle.italic),textAlign:TextAlign.center)),// Judul untuk sel pertama
TableCell(
TableCell(child:Text('-',style:TextStyle(fontWeight:light,fontStyle:FontStyle.italic),textAlign:TextAlign.center)),// Judul untuk sel pertama
child:Text('-',
TableCell(child:Text('type',style:TextStyle(fontWeight:light,fontStyle:FontStyle.italic),textAlign:TextAlign.center)),// Judul untuk sel kedua
style:TextStyle(
TableCell(child:Text('date',style:TextStyle(fontWeight:light,fontStyle:FontStyle.italic),textAlign:TextAlign.center)),// Judul untuk sel kedua
fontWeight:light,
TableCell(child:Text('time',style:TextStyle(fontWeight:light,fontStyle:FontStyle.italic),textAlign:TextAlign.center)),// Judul untuk sel kedua
fontStyle:FontStyle.italic),
TableCell(child:Text('amount',style:TextStyle(fontWeight:light,fontStyle:FontStyle.italic),textAlign:TextAlign.center)),// Judul untuk sel kedua
textAlign:TextAlign.center)),
TableCell(child:Text('last balance',style:TextStyle(fontWeight:light,fontStyle:FontStyle.italic),textAlign:TextAlign.center)),// Judul untuk sel kedua
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),
),
],
],
),
),
],
],
...
@@ -1100,19 +1206,65 @@ class _HomePageCheckBalanceState extends State<HomePageCheckBalance> implements
...
@@ -1100,19 +1206,65 @@ class _HomePageCheckBalanceState extends State<HomePageCheckBalance> implements
Expanded(
Expanded(
child:Container(
child:Container(
child:Scrollbar(
child:Scrollbar(
controller:_scrollController,// Use the same ScrollController
controller:_scrollController,
thumbVisibility:true,
thumbVisibility:true,
radius:Radius.circular(6),// Customize the scrollbar appearance
radius:Radius.circular(6),
thickness:6,// Ensure scrollbar is always shown
thickness:6,
child:ListView.builder(
child:balanceHistoryData.isEmpty
shrinkWrap:true,// Make sure to set shrinkWrap to true
?Center(
child:Card(
margin:EdgeInsets.fromLTRB(20,25,20,12),
child:Container(
height:300,
width:double.infinity,
child:Center(
child:Padding(
padding:constEdgeInsets.all(20),
child:Column(
mainAxisAlignment:MainAxisAlignment.center,
// Tengahkan vertikal
children:[
Align(
alignment:Alignment.center,
// Tengahkan horizontal
child:Text(
"ⓘ Tidak ada informasi saldo yang tercatat pada wristband Anda.",
style:blackTextStyle.copyWith(
fontSize:20*textScaleFactor,
fontWeight:bold,
letterSpacing:3),
textAlign:TextAlign.center),
),
Align(
alignment:Alignment.center,
// Tengahkan horizontal
child:Text(
"ⓘ There is no recorded balance information on your wristband.",