summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/main_menu.dart4
-rw-r--r--lib/scorekeeper.dart8
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/main_menu.dart b/lib/main_menu.dart
index 7cd29c6..8eda10c 100644
--- a/lib/main_menu.dart
+++ b/lib/main_menu.dart
@@ -85,7 +85,7 @@ class MainMenu extends StatelessWidget {
children: <Widget>[
const Text('Mini Golf Scorekeeper App'),
const Text('Made by Connor Frank'),
- const Text('Princeton NJ'),
+ const Text('Princeton NJ ca. April 2024'),
const Text(''),
Text('Version: $version'), // Display app version
const Text(''),
@@ -131,7 +131,7 @@ class MainMenu extends StatelessWidget {
final localContext = context;
return Scaffold(
appBar: AppBar(
- title: const Text('Mini Golf Main Menu'),
+ title: const Text('Mini Golf Scores'),
),
body: Column(
children: [
diff --git a/lib/scorekeeper.dart b/lib/scorekeeper.dart
index ba6a068..5bedeef 100644
--- a/lib/scorekeeper.dart
+++ b/lib/scorekeeper.dart
@@ -224,7 +224,7 @@ class ScoreKeeperState extends State<ScoreKeeper> {
title: const Text('Edit Player Names'),
content: TextField(
controller: nameController,
- decoration: const InputDecoration(hintText: 'Player 1, Player 2'),
+ decoration: const InputDecoration(hintText: 'Player 1, Player 2, ...'),
),
actions: <Widget>[
TextButton(
@@ -316,7 +316,7 @@ class ScoreKeeperState extends State<ScoreKeeper> {
final playerName = playerNames[i];
final playerScore = scores[holeNumber]!.length > i
? scores[holeNumber]![i].toString()
- : 'N/A';
+ : '0';
scoreDetails.add('$playerName: $playerScore');
}
scoreText += ' ${scoreDetails.join(' ')}';
@@ -412,7 +412,7 @@ class ScoreKeeperState extends State<ScoreKeeper> {
floatingActionButton: Align(
alignment: Alignment.bottomRight,
child: Padding(
- padding: const EdgeInsets.only(bottom: 16.0),
+ padding: const EdgeInsets.only(bottom: 4.0),
// Adjust padding as needed
child: Column(
mainAxisAlignment: MainAxisAlignment.end,
@@ -456,7 +456,7 @@ class ScoreKeeperState extends State<ScoreKeeper> {
GestureDetector(
onTap: () => _showPlayerRankings(context),
child: Container(
- padding: const EdgeInsets.all(10),
+ padding: const EdgeInsets.all(20),
child: Text(
'Total Par: ${pars.values.fold(0, (prev, par) => prev + par)}',
style: TextStyle(