show finished date and version

This commit is contained in:
lukas-heiligenbrunner 2024-02-18 14:22:27 +01:00 committed by Lukas-Heiligenbrunner
parent a4f1179c94
commit d6b388fa03
2 changed files with 8 additions and 26 deletions

View File

@ -239,12 +239,16 @@ class _BuildScreenState extends State<BuildScreen> {
textRight: buildData.id.toString(), textRight: buildData.id.toString(),
), ),
SideCard( SideCard(
title: "Finished", title: "Version",
textRight: buildData.end_time.toString(), textRight: buildData.version,
), ),
SideCard( SideCard(
title: "Queued", title: "Finished",
textRight: "7", textRight: buildData.end_time == null
? "Not yet"
: DateTime.fromMillisecondsSinceEpoch(
buildData.end_time! * 1000)
.readableDuration(),
), ),
SideCard( SideCard(
title: "Duration", title: "Duration",

View File

@ -1,22 +0,0 @@
import 'dart:ui';
import 'package:flutter/material.dart';
Color getRoleColor(String? role) {
if (role == "Doctor") {
return Colors.green;
} else if (role == "Software Architect") {
return Colors.red;
} else if (role == "Software Engineer") {
return Colors.blueAccent;
} else if (role == "Solution Architect") {
return Colors.amberAccent;
} else if (role == "Project Manager") {
return Colors.cyanAccent;
} else if (role == "Business Analyst") {
return Colors.deepPurpleAccent;
} else if (role == "UI/UX Designer") {
return Colors.indigoAccent;
}
return Colors.black38;
}