Adjust the clipboard copy function to generate a link to the web viewer.

This commit is contained in:
zontreck 2025-05-17 02:55:31 -07:00
parent de6d767a38
commit 199a3585d7
3 changed files with 8 additions and 4 deletions

View file

@ -90,6 +90,7 @@ class _HomePageState extends State<HomePage> {
setState(() {});
},
),
/*
ListTile(
title: Text("RESET APP SESSION"),
onTap: () async {
@ -104,7 +105,7 @@ class _HomePageState extends State<HomePage> {
SessionData.positions = [];
});
},
),
),*/
],
),
),
@ -124,7 +125,10 @@ class _HomePageState extends State<HomePage> {
subtitle: Text("${SessionData.LastSessionID} - Tap to copy"),
onTap: () {
Clipboard.setData(
ClipboardData(text: SessionData.LastSessionID),
ClipboardData(
text:
"https://timetrack.zontreck.com/?code=${SessionData.LastSessionID}",
),
);
},
),