From cf927a1dfe1b0fe91ceb23602534f4862d58332b Mon Sep 17 00:00:00 2001 From: Connor Frank Date: Tue, 23 Apr 2024 17:54:11 -0400 Subject: assorted updates --- lib/scorekeeper.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/scorekeeper.dart') 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 { 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: [ TextButton( @@ -316,7 +316,7 @@ class ScoreKeeperState extends State { 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 { 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 { 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( -- cgit v1.2.3