Add ability to tap to copy the session ID
This commit is contained in:
parent
7c5e3360a5
commit
37e5688842
4 changed files with 12 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
"alpha": "1.0.0-dev.10",
|
||||
"beta": "1.0.0-beta.1"
|
||||
"beta": "1.0.0-beta.2"
|
||||
}
|
||||
|
|
|
@ -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.1";
|
||||
static const VERSION = "1.0.0-beta.2";
|
||||
|
||||
static bool UPDATE_AVAILABLE = false;
|
||||
static UpdateChannel UPDATE_CHANNEL = UpdateChannel.alpha;
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:libacflutter/Constants.dart';
|
||||
import 'package:libacflutter/Prompt.dart';
|
||||
import 'package:timetrack/consts.dart';
|
||||
|
@ -119,9 +120,14 @@ class _HomePageState extends State<HomePage> {
|
|||
),
|
||||
|
||||
if (SessionData.LastSessionID.isNotEmpty)
|
||||
Text(
|
||||
"Session ID Code: ${SessionData.LastSessionID}",
|
||||
style: TextStyle(fontSize: 18),
|
||||
ListTile(
|
||||
title: Text("Session ID"),
|
||||
subtitle: Text("${SessionData.LastSessionID} - Tap to copy"),
|
||||
onTap: () {
|
||||
Clipboard.setData(
|
||||
ClipboardData(text: SessionData.LastSessionID),
|
||||
);
|
||||
},
|
||||
),
|
||||
if (!SessionData.IsOnTheClock)
|
||||
Center(
|
||||
|
|
|
@ -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.1
|
||||
version: 1.0.0-beta.2
|
||||
|
||||
environment:
|
||||
sdk: ^3.7.2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue