add basic came history tile

This commit is contained in:
Yannick
2025-11-21 15:44:27 +01:00
parent 69e13e877e
commit 95f0861a79
2 changed files with 47 additions and 19 deletions

View File

@@ -134,16 +134,16 @@ class _GameHistoryViewState extends State<GameHistoryView> {
children: [
Column(
children: [
Container(margin: EdgeInsets.only(bottom: 75)),
Container(margin: const EdgeInsets.only(bottom: 75)),
Expanded(
child: gameHistoryListView(allGameData, suggestedGameData),
),
],
),
Container(
margin: EdgeInsets.only(top: 10, bottom: 10, left: 10, right: 10),
margin: const EdgeInsets.only(top: 10, bottom: 10, left: 10, right: 10),
child: SearchBar(
leading: Icon(Icons.search),
leading: const Icon(Icons.search),
onChanged: (value) {
if (value.isEmpty) {
setState(() {
@@ -195,9 +195,9 @@ Widget gameHistoryListView(allGameData, suggestedGameData) {
return GameHistoryTile(
gameTitle: currentGame['title'],
gameType: currentGame['game'],
ruleset: currentGame['date'],
date: currentGame['date'],
groupName: currentGame['group'],
winner: "ich",
winner: 'ich',
);
},
);