From a4c7dcda5ceed4bdbb019cf61252c62bad9b6801 Mon Sep 17 00:00:00 2001 From: mathiskirchner Date: Wed, 25 Jun 2025 17:08:13 +0200 Subject: [PATCH] fixed imports and method calls due to renaming --- .../views/main_menu/game_history_view.dart | 12 +++++-- .../widgets/game_history_listtile.dart | 35 ------------------- 2 files changed, 9 insertions(+), 38 deletions(-) delete mode 100644 lib/presentation/widgets/game_history_listtile.dart diff --git a/lib/presentation/views/main_menu/game_history_view.dart b/lib/presentation/views/main_menu/game_history_view.dart index 6d0179a..de75ae6 100644 --- a/lib/presentation/views/main_menu/game_history_view.dart +++ b/lib/presentation/views/main_menu/game_history_view.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; import 'package:game_tracker/core/custom_theme.dart'; import 'package:game_tracker/presentation/widgets/top_centered_message.dart'; -import 'package:game_tracker/presentation/widgets/game_history_listtile.dart'; +import 'package:game_tracker/presentation/widgets/double_row_info_tile.dart'; class GameHistoryView extends StatefulWidget { const GameHistoryView({super.key}); @@ -21,7 +21,7 @@ class _GameHistoryViewState extends State { }, { 'game': 'Monopoly', - 'title': 'Wochenendspaß', + 'title': 'Wochenendspaß mit Gras du Saas', 'players': 4, 'group': 'Freunde', 'date': '28.05.2024', @@ -186,7 +186,13 @@ Widget gameHistoryListView(allGameData, suggestedGameData) { itemCount: suggestedGameData.length, itemBuilder: (context, index) { final currentGame = suggestedGameData[index]; - return GameHistoryListTile(currentGame); + return doubleRowInfoTile( + currentGame['game'] + ": ", + currentGame['title'], + currentGame['players'].toString() + " Spieler", + currentGame['group'], + currentGame['date'], + ); }, ); } diff --git a/lib/presentation/widgets/game_history_listtile.dart b/lib/presentation/widgets/game_history_listtile.dart deleted file mode 100644 index 66b18b2..0000000 --- a/lib/presentation/widgets/game_history_listtile.dart +++ /dev/null @@ -1,35 +0,0 @@ -import 'package:flutter/material.dart'; -import 'package:game_tracker/core/custom_theme.dart'; - -Widget GameHistoryListTile(Map currentGame) { - return Container( - margin: EdgeInsets.only(top: 5, bottom: 5, left: 10, right: 10), - padding: EdgeInsets.all(10), - decoration: BoxDecoration( - borderRadius: BorderRadius.circular(20), - color: CustomTheme.secondaryColor, - ), - child: Column( - children: [ - Row( - children: [ - Text("${currentGame['game']}: ", style: TextStyle(fontSize: 20)), - Text("${currentGame['title']}", style: TextStyle(fontSize: 20)), - Spacer(), - Text( - "${currentGame['players']} Spieler", - style: TextStyle(fontSize: 20), - ), - ], - ), - Row( - children: [ - Text("${currentGame['group']}", style: TextStyle(fontSize: 20)), - Spacer(), - Text("${currentGame['date']}", style: TextStyle(fontSize: 20)), - ], - ), - ], - ), - ); -}