diff options
author | Connor Frank <conjfrnk@gmail.com> | 2024-04-23 17:54:11 -0400 |
---|---|---|
committer | Connor Frank <conjfrnk@gmail.com> | 2024-04-23 17:54:11 -0400 |
commit | cf927a1dfe1b0fe91ceb23602534f4862d58332b (patch) | |
tree | 0cc4181904610283bf41c05e433c580e20801b1a /lib/scorekeeper.dart | |
parent | d80834c178e52de72f99988acbfc5802b962ed88 (diff) |
assorted updates
Diffstat (limited to 'lib/scorekeeper.dart')
-rw-r--r-- | lib/scorekeeper.dart | 8 |
1 files changed, 4 insertions, 4 deletions
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( |