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/main_menu.dart | 4 ++-- lib/scorekeeper.dart | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'lib') 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: [ 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 { 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