Merge branch 'development' into feature/31-json-import-fuer-testdaten
Some checks failed
Pull Request Pipeline / test (pull_request) Failing after 2m4s
Pull Request Pipeline / lint (pull_request) Successful in 2m13s

This commit is contained in:
2025-11-19 20:35:34 +01:00
4 changed files with 130 additions and 23 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(() {
@@ -178,16 +178,16 @@ class _GameHistoryViewState extends State<GameHistoryView> {
Widget gameHistoryListView(allGameData, suggestedGameData) {
if (suggestedGameData.isEmpty && allGameData.isEmpty) {
return TopCenteredMessage(
return const TopCenteredMessage(
icon: Icons.info,
title: "Info",
message: "Keine Spiele erstellt",
title: 'Info',
message: 'Keine Spiele erstellt',
);
} else if (suggestedGameData.isEmpty) {
return TopCenteredMessage(
return const TopCenteredMessage(
icon: Icons.search,
title: "Info",
message: "Kein Spiel mit den Suchparametern gefunden.",
title: 'Info',
message: 'Kein Spiel mit den Suchparametern gefunden.',
);
}
return ListView.builder(
@@ -195,9 +195,9 @@ Widget gameHistoryListView(allGameData, suggestedGameData) {
itemBuilder: (context, index) {
final currentGame = suggestedGameData[index];
return doubleRowInfoTile(
currentGame['game'] + ": ",
currentGame['game'] + ': ',
currentGame['title'],
currentGame['players'].toString() + " Spieler",
"${currentGame['players']} Spieler",
currentGame['group'],
currentGame['date'],
);