show finished date and version
This commit is contained in:
		@@ -239,12 +239,16 @@ class _BuildScreenState extends State<BuildScreen> {
 | 
			
		||||
              textRight: buildData.id.toString(),
 | 
			
		||||
            ),
 | 
			
		||||
            SideCard(
 | 
			
		||||
              title: "Finished",
 | 
			
		||||
              textRight: buildData.end_time.toString(),
 | 
			
		||||
              title: "Version",
 | 
			
		||||
              textRight: buildData.version,
 | 
			
		||||
            ),
 | 
			
		||||
            SideCard(
 | 
			
		||||
              title: "Queued",
 | 
			
		||||
              textRight: "7",
 | 
			
		||||
              title: "Finished",
 | 
			
		||||
              textRight: buildData.end_time == null
 | 
			
		||||
                  ? "Not yet"
 | 
			
		||||
                  : DateTime.fromMillisecondsSinceEpoch(
 | 
			
		||||
                          buildData.end_time! * 1000)
 | 
			
		||||
                      .readableDuration(),
 | 
			
		||||
            ),
 | 
			
		||||
            SideCard(
 | 
			
		||||
              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;
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user