Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Commit

Permalink
feat: show score in map menu (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
alestiago authored Feb 17, 2024
1 parent ff7d1c0 commit 04897db
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/trashy_road/lib/src/maps/widgets/game_map_tile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,15 @@ class GameMapTile extends StatelessWidget {
: CupertinoColors.systemGreen,
border: Border.all(),
),
child: Center(child: Text(_map.identifier)),
child: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(_map.identifier),
if (!_map.locked) Text(_map.score.toString()),
],
),
),
),
);
}
Expand Down

0 comments on commit 04897db

Please sign in to comment.