MatchTiles only show when recent games are available

This commit is contained in:
2026-01-09 20:15:50 +01:00
parent 3d510d5b3d
commit afb7a5f1d4
2 changed files with 35 additions and 33 deletions

View File

@@ -86,6 +86,7 @@ class _HomeViewState extends State<HomeView> {
), ),
], ],
), ),
if (recentMatches.isNotEmpty)
Padding( Padding(
padding: const EdgeInsets.only(top: 8.0), padding: const EdgeInsets.only(top: 8.0),
child: MatchTile( child: MatchTile(
@@ -103,6 +104,7 @@ class _HomeViewState extends State<HomeView> {
}, },
), ),
), ),
if (recentMatches.length > 1)
Padding( Padding(
padding: const EdgeInsets.only(top: 8.0), padding: const EdgeInsets.only(top: 8.0),
child: MatchTile( child: MatchTile(

View File

@@ -1,7 +1,7 @@
name: game_tracker name: game_tracker
description: "Game Tracking App for Card Games" description: "Game Tracking App for Card Games"
publish_to: 'none' publish_to: 'none'
version: 0.0.1+23 version: 0.0.1+43
environment: environment:
sdk: ^3.8.1 sdk: ^3.8.1