show finished date and version
This commit is contained in:
parent
a4f1179c94
commit
d6b388fa03
@ -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",
|
||||||
|
@ -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;
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user