Updated skeleton data

This commit is contained in:
2026-04-21 22:17:31 +02:00
parent e910f1dcd3
commit dfc7788087

View File

@@ -53,14 +53,30 @@ class _HomeViewState extends State<HomeView> {
name: 'Skeleton Group', name: 'Skeleton Group',
description: 'This is a skeleton group description.', description: 'This is a skeleton group description.',
members: [ members: [
Player(name: 'Skeleton Player 1', description: ''), Player(
Player(name: 'Skeleton Player 2', description: ''), name:
'Skeleton Player 1'
'',
),
Player(
name:
'Skeleton Player 2'
'',
),
], ],
), ),
notes: 'These are skeleton notes.', notes: 'These are skeleton notes.',
players: [ players: [
Player(name: 'Skeleton Player 1', description: ''), Player(
Player(name: 'Skeleton Player 2', description: ''), name:
'Skeleton Player 1'
'',
),
Player(
name:
'Skeleton Player 2'
'',
),
], ],
), ),
); );
@@ -231,7 +247,8 @@ class _HomeViewState extends State<HomeView> {
/// Updates the winner information for a specific match in the recent matches list. /// Updates the winner information for a specific match in the recent matches list.
Future<void> updatedWinnerInRecentMatches(String matchId) async { Future<void> updatedWinnerInRecentMatches(String matchId) async {
final db = Provider.of<AppDatabase>(context, listen: false); final db = Provider.of<AppDatabase>(context, listen: false);
final winner = await db.scoreEntryDao.getWinner(matchId: matchId); // TODO: fix
//final winner = await db.scoreEntryDao.getWinner(matchId: matchId);
final matchIndex = recentMatches.indexWhere((match) => match.id == matchId); final matchIndex = recentMatches.indexWhere((match) => match.id == matchId);
if (matchIndex != -1) { if (matchIndex != -1) {
setState(() { setState(() {