diff --git a/frontend/lib/screens/build_screen.dart b/frontend/lib/screens/build_screen.dart index c199b2d..cac587a 100644 --- a/frontend/lib/screens/build_screen.dart +++ b/frontend/lib/screens/build_screen.dart @@ -239,12 +239,16 @@ class _BuildScreenState extends State { 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", diff --git a/frontend/lib/utils/colorful_tag.dart b/frontend/lib/utils/colorful_tag.dart deleted file mode 100644 index 025e9ed..0000000 --- a/frontend/lib/utils/colorful_tag.dart +++ /dev/null @@ -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; -}