Updated round index

This commit is contained in:
2025-07-19 15:56:48 +02:00
parent 12b4d3d741
commit 65d44ac7b1

View File

@@ -54,14 +54,14 @@ class _PointsViewState extends State<PointsView> {
rows: [ rows: [
...List<DataRow>.generate( ...List<DataRow>.generate(
widget.gameSession.roundList.length, widget.gameSession.roundList.length,
(roundNumber) { (roundIndex) {
final round = widget.gameSession.roundList[roundNumber]; final round = widget.gameSession.roundList[roundIndex];
return DataRow( return DataRow(
cells: [ cells: [
DataCell(Align( DataCell(Align(
alignment: Alignment.center, alignment: Alignment.center,
child: Text( child: Text(
'$roundNumber', '${roundIndex + 1}',
style: const TextStyle(fontSize: 20), style: const TextStyle(fontSize: 20),
), ),
)), )),