First version of inserting into db

This commit is contained in:
2025-08-22 14:09:09 +02:00
parent 7a420e909a
commit 6b2651a396
19 changed files with 365 additions and 152 deletions

View File

@@ -68,7 +68,7 @@ class _PointsViewState extends State<PointsView> {
padding:
const EdgeInsets.symmetric(horizontal: 8),
child: Text(
player,
player.name,
style: const TextStyle(
fontWeight: FontWeight.bold),
overflow: TextOverflow.ellipsis,
@@ -120,7 +120,7 @@ class _PointsViewState extends State<PointsView> {
padding: const EdgeInsets.symmetric(
horizontal: 8),
child: Text(
player,
player.name,
style: const TextStyle(
fontWeight: FontWeight.bold),
overflow: TextOverflow.ellipsis,
@@ -236,18 +236,20 @@ class _PointsViewState extends State<PointsView> {
fontWeight: FontWeight.bold),
),
)),
...widget.gameSession.playerScores.map(
(score) => DataCell(
Center(
child: Text(
'$score',
style: const TextStyle(
fontSize: 20,
fontWeight: FontWeight.bold),
...widget.gameSession
.getPlayerScoresAsList()
.map(
(score) => DataCell(
Center(
child: Text(
'$score',
style: const TextStyle(
fontSize: 20,
fontWeight: FontWeight.bold),
),
),
),
),
),
),
],
),
],