Do some minor cosmetic changes
This commit is contained in:
parent
8293ddeb68
commit
9bb9aa6488
5 changed files with 22 additions and 4 deletions
|
@ -9,7 +9,7 @@ class TTConsts {
|
|||
static get SESSION_SERVER =>
|
||||
"https://api.zontreck.com/timetrack/$UPDATE_CHANNEL/timetrack.php";
|
||||
|
||||
static const VERSION = "1.0.0-beta.10";
|
||||
static const VERSION = "1.0.0-beta.11";
|
||||
|
||||
static bool UPDATE_AVAILABLE = false;
|
||||
static UpdateChannel UPDATE_CHANNEL = UpdateChannel.beta;
|
||||
|
|
|
@ -42,6 +42,15 @@ class SessionData {
|
|||
return total;
|
||||
}
|
||||
|
||||
static int GetTotalDeliveries() {
|
||||
int total = 0;
|
||||
for (var trip in Trips) {
|
||||
total += trip.deliveries.length;
|
||||
}
|
||||
|
||||
return total;
|
||||
}
|
||||
|
||||
static String GetTotalMilesAsString() {
|
||||
double miles = GetTotalMiles();
|
||||
if (miles == 0) return "0.0";
|
||||
|
|
|
@ -375,7 +375,7 @@ class _HomePageState extends State<HomePage> {
|
|||
return Column(
|
||||
children: [
|
||||
Text(
|
||||
"You are now on the clock\nYour location is being tracked for record keeping purposes.\n\nYou started ${SessionData.GetTotalTimeWorked(SessionData.StartTime, DateTime.now())}\n\n",
|
||||
"You are now on the clock\nYour location is being tracked for record keeping purposes.\n\nYou started ${SessionData.GetTotalTimeWorked(SessionData.StartTime, DateTime.now())} ago\n\n",
|
||||
style: TextStyle(fontSize: 18),
|
||||
),
|
||||
if (SessionData.currentTrip != null) GetTripWidgets(),
|
||||
|
|
|
@ -79,7 +79,7 @@ class _WorkData extends State<WorkDataPage> {
|
|||
),
|
||||
if (SessionData.TotalPay != null)
|
||||
Text(
|
||||
"Total Pay: ${SessionData.TotalPay!}",
|
||||
"Total Pay: \$${SessionData.TotalPay!}",
|
||||
style: TextStyle(fontSize: 18),
|
||||
),
|
||||
|
||||
|
@ -91,6 +91,15 @@ class _WorkData extends State<WorkDataPage> {
|
|||
),
|
||||
|
||||
SizedBox(height: 40),
|
||||
Text(
|
||||
"Total Number of Trips: ${SessionData.Trips.length}",
|
||||
style: TextStyle(fontSize: 18),
|
||||
),
|
||||
|
||||
Text(
|
||||
"Total Deliveries: ${SessionData.GetTotalDeliveries()}",
|
||||
style: TextStyle(fontSize: 18),
|
||||
),
|
||||
ElevatedButton(
|
||||
onPressed: () async {
|
||||
// Process data export to GPX format.
|
||||
|
|
|
@ -16,7 +16,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
|
|||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
||||
# In Windows, build-name is used as the major, minor, and patch parts
|
||||
# of the product and file versions while build-number is used as the build suffix.
|
||||
version: 1.0.0-beta.10
|
||||
version: 1.0.0-beta.11
|
||||
|
||||
environment:
|
||||
sdk: ^3.7.2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue