From 8e2863d70a15977b037247cece7c6ae0130cdf39 Mon Sep 17 00:00:00 2001 From: mathiskirchner Date: Wed, 25 Jun 2025 14:31:47 +0200 Subject: [PATCH] implemented list tile widget for game history view --- .../widgets/game_history_listtile.dart | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 lib/presentation/widgets/game_history_listtile.dart diff --git a/lib/presentation/widgets/game_history_listtile.dart b/lib/presentation/widgets/game_history_listtile.dart new file mode 100644 index 0000000..473476c --- /dev/null +++ b/lib/presentation/widgets/game_history_listtile.dart @@ -0,0 +1,32 @@ +import 'package:flutter/material.dart'; +import 'package:game_tracker/core/custom_theme.dart'; + +Widget GameHistoryListTile(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)) + ], + ), + ], + ), + ); +} \ No newline at end of file