From 199a3585d70a4f2118a0591faa79879d5aa79ced Mon Sep 17 00:00:00 2001 From: zontreck Date: Sat, 17 May 2025 02:55:31 -0700 Subject: [PATCH] Adjust the clipboard copy function to generate a link to the web viewer. --- lib/consts.dart | 2 +- lib/pages/HomePage.dart | 8 ++++++-- pubspec.yaml | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/consts.dart b/lib/consts.dart index 544e4b5..82d1220 100644 --- a/lib/consts.dart +++ b/lib/consts.dart @@ -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.7"; + static const VERSION = "1.0.0-beta.8"; static bool UPDATE_AVAILABLE = false; static UpdateChannel UPDATE_CHANNEL = UpdateChannel.beta; diff --git a/lib/pages/HomePage.dart b/lib/pages/HomePage.dart index 7a7bcb0..03f01c2 100644 --- a/lib/pages/HomePage.dart +++ b/lib/pages/HomePage.dart @@ -90,6 +90,7 @@ class _HomePageState extends State { setState(() {}); }, ), + /* ListTile( title: Text("RESET APP SESSION"), onTap: () async { @@ -104,7 +105,7 @@ class _HomePageState extends State { SessionData.positions = []; }); }, - ), + ),*/ ], ), ), @@ -124,7 +125,10 @@ class _HomePageState extends State { subtitle: Text("${SessionData.LastSessionID} - Tap to copy"), onTap: () { Clipboard.setData( - ClipboardData(text: SessionData.LastSessionID), + ClipboardData( + text: + "https://timetrack.zontreck.com/?code=${SessionData.LastSessionID}", + ), ); }, ), diff --git a/pubspec.yaml b/pubspec.yaml index 60032ab..ce42f31 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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.7 +version: 1.0.0-beta.8 environment: sdk: ^3.7.2